pub struct TokenAuthorityProposal {
pub token_cell: AccountId,
pub proposer: Vec<u8>,
pub voters: HashSet<Vec<u8>>,
pub votes_for_stake: u64,
pub created_at: u64,
pub voting_ends_at: u64,
pub set_mint_authority: bool,
pub new_mint_authority: Option<AccountId>,
pub set_freeze_authority: bool,
pub new_freeze_authority: Option<AccountId>,
}Fields§
§token_cell: AccountId§proposer: Vec<u8>§voters: HashSet<Vec<u8>>§votes_for_stake: u64§created_at: u64§voting_ends_at: u64Implementations§
Source§impl TokenAuthorityProposal
impl TokenAuthorityProposal
pub fn voting_open(&self, current_height: u64) -> bool
Trait Implementations§
Source§impl Clone for TokenAuthorityProposal
impl Clone for TokenAuthorityProposal
Source§fn clone(&self) -> TokenAuthorityProposal
fn clone(&self) -> TokenAuthorityProposal
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 TokenAuthorityProposal
impl Debug for TokenAuthorityProposal
Source§impl<'de> Deserialize<'de> for TokenAuthorityProposal
impl<'de> Deserialize<'de> for TokenAuthorityProposal
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 TokenAuthorityProposal
impl RefUnwindSafe for TokenAuthorityProposal
impl Send for TokenAuthorityProposal
impl Sync for TokenAuthorityProposal
impl Unpin for TokenAuthorityProposal
impl UnsafeUnpin for TokenAuthorityProposal
impl UnwindSafe for TokenAuthorityProposal
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