Struct dao::configuration::VotingConfiguration
source · pub struct VotingConfiguration {
pub is_bid_escrow: bool,
pub bind_ballot_for_successful_voting: bool,
pub unbound_ballot_address: Option<Address>,
pub contract_calls: Vec<ContractCall>,
pub only_va_can_create: bool,
pub double_time_between_votings: bool,
}
Expand description
A serializable data structure that represents voting configuration.
Fields§
§is_bid_escrow: bool
§bind_ballot_for_successful_voting: bool
§unbound_ballot_address: Option<Address>
§contract_calls: Vec<ContractCall>
§only_va_can_create: bool
§double_time_between_votings: bool
Implementations§
source§impl VotingConfiguration
impl VotingConfiguration
pub fn set_bind_ballot_for_successful_voting( &mut self, bind_ballot_for_successful_voting: bool )
pub fn set_unbound_ballot_address( &mut self, unbound_ballot_address: Option<Address> )
pub fn set_is_bid_escrow(&mut self, is_bid_escrow: bool)
pub fn set_only_va_can_create(&mut self, only_va_can_create: bool)
pub fn set_contract_calls(&mut self, contract_calls: Vec<ContractCall>)
pub fn should_bind_ballot_for_successful_voting(&self) -> bool
pub fn get_unbound_ballot_address(&self) -> Option<Address>
Trait Implementations§
source§impl BorshDeserialize for VotingConfiguration
impl BorshDeserialize for VotingConfiguration
source§fn deserialize(buf: &mut &[u8]) -> Result<Self>
fn deserialize(buf: &mut &[u8]) -> Result<Self>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
source§impl BorshSerialize for VotingConfiguration
impl BorshSerialize for VotingConfiguration
source§impl Clone for VotingConfiguration
impl Clone for VotingConfiguration
source§fn clone(&self) -> VotingConfiguration
fn clone(&self) -> VotingConfiguration
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 moreAuto Trait Implementations§
impl RefUnwindSafe for VotingConfiguration
impl Send for VotingConfiguration
impl Sync for VotingConfiguration
impl Unpin for VotingConfiguration
impl UnwindSafe for VotingConfiguration
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