[][src]Struct vostok_dao::proposal::ProposalOut

pub struct ProposalOut {
    pub action: Action,
    pub description: String,
    pub voting_start: U64,
    pub voting_end: U64,
    pub votes_for: u32,
    pub votes_against: u32,
    pub execute_before: U64,
    pub executed: bool,
}

JSON compatible return type for Proposal.

Fields

action: Actiondescription: Stringvoting_start: U64

block number when voting started

voting_end: U64

voting duration in number of blocks

votes_for: u32votes_against: u32execute_before: U64executed: bool

Trait Implementations

impl<'de> Deserialize<'de> for ProposalOut[src]

impl From<Proposal> for ProposalOut[src]

impl Serialize for ProposalOut[src]

Auto Trait Implementations

impl RefUnwindSafe for ProposalOut[src]

impl Send for ProposalOut[src]

impl Sync for ProposalOut[src]

impl Unpin for ProposalOut[src]

impl UnwindSafe for ProposalOut[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.