pub struct GovernanceProposal {
pub proposal_type: ProposalType,
pub proposer: AccountId,
pub created_at_height: u64,
pub timelock_blocks: u64,
pub require_vote: bool,
pub votes_for: u64,
pub votes_against: u64,
pub voters: HashSet<AccountId>,
pub executed: bool,
}Expand description
Governance proposal for cell upgrades
Fields§
§proposal_type: ProposalType§proposer: AccountId§created_at_height: u64§timelock_blocks: u64§require_vote: bool§votes_for: u64§votes_against: u64§voters: HashSet<AccountId>§executed: boolTrait Implementations§
Source§impl Clone for GovernanceProposal
impl Clone for GovernanceProposal
Source§fn clone(&self) -> GovernanceProposal
fn clone(&self) -> GovernanceProposal
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GovernanceProposal
impl Debug for GovernanceProposal
Source§impl<'de> Deserialize<'de> for GovernanceProposal
impl<'de> Deserialize<'de> for GovernanceProposal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GovernanceProposal
impl RefUnwindSafe for GovernanceProposal
impl Send for GovernanceProposal
impl Sync for GovernanceProposal
impl Unpin for GovernanceProposal
impl UnsafeUnpin for GovernanceProposal
impl UnwindSafe for GovernanceProposal
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