pub struct Proposal {
pub id: Hash32,
pub proposer: Address,
pub title: String,
pub description: String,
pub payload: Vec<u8>,
pub state: ProposalState,
pub votes_for: u128,
pub votes_against: u128,
pub voting_start: u64,
pub voting_end: u64,
pub executed: bool,
}Fields§
§id: Hash32§proposer: Address§title: String§description: String§payload: Vec<u8>§state: ProposalState§votes_for: u128§votes_against: u128§voting_start: u64§voting_end: u64§executed: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for Proposal
impl<'de> Deserialize<'de> for Proposal
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 Proposal
impl RefUnwindSafe for Proposal
impl Send for Proposal
impl Sync for Proposal
impl Unpin for Proposal
impl UnsafeUnpin for Proposal
impl UnwindSafe for Proposal
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