[−][src]Struct vostok_dao::proposal::Proposal
Fields
proposer: AccountIddescription: Stringaction: ActionIntvoters: HashSet<AccountId>voting_start: u64block number when voting started
voting_end: u64votes_for: u32votes_against: u32execute_before: u64executed: boolImplementations
impl Proposal[src]
pub fn vote(&mut self, voter: &Voter, vote_yes: bool)[src]
pub fn execute(&mut self, min_support: u32) -> Promise[src]
Trait Implementations
impl BorshDeserialize for Proposal where
AccountId: BorshDeserialize,
String: BorshDeserialize,
ActionInt: BorshDeserialize,
HashSet<AccountId>: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u32: BorshDeserialize,
u32: BorshDeserialize,
u64: BorshDeserialize,
bool: BorshDeserialize, [src]
AccountId: BorshDeserialize,
String: BorshDeserialize,
ActionInt: BorshDeserialize,
HashSet<AccountId>: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u32: BorshDeserialize,
u32: BorshDeserialize,
u64: BorshDeserialize,
bool: BorshDeserialize,
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>[src]
pub fn try_from_slice(v: &[u8]) -> Result<Self, Error>[src]
pub fn is_u8() -> bool[src]
impl BorshSerialize for Proposal where
AccountId: BorshSerialize,
String: BorshSerialize,
ActionInt: BorshSerialize,
HashSet<AccountId>: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u32: BorshSerialize,
u32: BorshSerialize,
u64: BorshSerialize,
bool: BorshSerialize, [src]
AccountId: BorshSerialize,
String: BorshSerialize,
ActionInt: BorshSerialize,
HashSet<AccountId>: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u32: BorshSerialize,
u32: BorshSerialize,
u64: BorshSerialize,
bool: BorshSerialize,
fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), Error>[src]
pub fn try_to_vec(&self) -> Result<Vec<u8, Global>, Error>[src]
pub fn is_u8() -> bool[src]
impl From<Proposal> for ProposalOut[src]
fn from(p: Proposal) -> ProposalOut[src]
Auto Trait Implementations
impl RefUnwindSafe for Proposal[src]
impl Send for Proposal[src]
impl Sync for Proposal[src]
impl Unpin for Proposal[src]
impl UnwindSafe for Proposal[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,