Struct nnsdao_sdk_basic::Proposal
source · [−]pub struct Proposal {
pub id: u64,
pub proposer: Principal,
pub title: String,
pub content: String,
pub proposal_state: ProposalState,
pub vote_data: Vec<(Principal, Votes)>,
pub property: Option<HashMap<String, String>>,
pub end_time: u64,
pub timestamp: u64,
}
Expand description
Proposal unit structure
Fields
id: u64
proposer: Principal
title: String
content: String
proposal_state: ProposalState
vote_data: Vec<(Principal, Votes)>
property: Option<HashMap<String, String>>
end_time: u64
timestamp: u64
Trait Implementations
sourceimpl CandidType for Proposal
impl CandidType for Proposal
sourceimpl<'de> Deserialize<'de> for Proposal
impl<'de> Deserialize<'de> for Proposal
sourcefn 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 RefUnwindSafe for Proposal
impl Send for Proposal
impl Sync for Proposal
impl Unpin for Proposal
impl UnwindSafe for Proposal
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more