Struct dao::configuration::ConfigurationBuilder
source · pub struct ConfigurationBuilder { /* private fields */ }
Expand description
Utility to crate a Configuration instance.
Implementations§
source§impl ConfigurationBuilder
impl ConfigurationBuilder
sourcepub fn new(
total_onboarded: Balance,
variables: &BTreeMap<String, Bytes>
) -> Self
pub fn new( total_onboarded: Balance, variables: &BTreeMap<String, Bytes> ) -> Self
Creates a new instance of ConfigurationBuilder.
sourcepub fn contract_call(self, contract_call: ContractCall) -> Self
pub fn contract_call(self, contract_call: ContractCall) -> Self
Sets the contract_calls
field with a vec with a single call.
sourcepub fn contract_calls(self, contract_calls: Vec<ContractCall>) -> Self
pub fn contract_calls(self, contract_calls: Vec<ContractCall>) -> Self
Sets the contract_calls
field.
sourcepub fn only_va_can_create(self, only_va_can_create: bool) -> Self
pub fn only_va_can_create(self, only_va_can_create: bool) -> Self
Sets the only_va_can_create
field.
sourcepub fn set_is_bid_escrow(self, is_bid_escrow: bool) -> ConfigurationBuilder
pub fn set_is_bid_escrow(self, is_bid_escrow: bool) -> ConfigurationBuilder
Sets the is_bid_escrow
field and inits the fiat rate.
sourcepub fn bind_ballot_for_successful_voting(
self,
address: Address
) -> ConfigurationBuilder
pub fn bind_ballot_for_successful_voting( self, address: Address ) -> ConfigurationBuilder
Sets the unbound_ballot_address
field.
sourcepub fn build(self) -> Configuration
pub fn build(self) -> Configuration
Builds the final Configuration.
Auto Trait Implementations§
impl RefUnwindSafe for ConfigurationBuilder
impl Send for ConfigurationBuilder
impl Sync for ConfigurationBuilder
impl Unpin for ConfigurationBuilder
impl UnwindSafe for ConfigurationBuilder
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