Struct dao::modules::repository::Repository
source · pub struct Repository {
pub storage: Mapping<String, Record>,
pub all_keys: List<String>,
}
Expand description
A module that stores the DAO configuration.
The modules stores key-value pairs and a set of keys. The repository is initialized with the default values.
Fields§
§storage: Mapping<String, Record>
§all_keys: List<String>
Implementations§
source§impl Repository
impl Repository
pub fn init( &mut self, fiat_conversion: Address, bid_escrow_wallet: Address, voting_ids: Address )
pub fn update_at( &mut self, key: String, value: Bytes, activation_time: Option<u64> )
pub fn get(&self, key: String) -> Option<Bytes>
pub fn get_full_value(&self, key: String) -> Option<Record>
Trait Implementations§
source§impl Clone for Repository
impl Clone for Repository
source§fn clone(&self) -> Repository
fn clone(&self) -> Repository
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Node for Repository
impl Node for Repository
Auto Trait Implementations§
impl RefUnwindSafe for Repository
impl Send for Repository
impl Sync for Repository
impl Unpin for Repository
impl UnwindSafe for Repository
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more