Struct nnsdao_sdk_basic::ProposalArg
source · [−]pub struct ProposalArg {
pub proposer: Principal,
pub title: String,
pub content: String,
pub property: Option<HashMap<String, String>>,
pub end_time: u64,
}
Expand description
Create parameters for the proposal
Fields
proposer: Principal
title: String
content: String
property: Option<HashMap<String, String>>
end_time: u64
Trait Implementations
sourceimpl CandidType for ProposalArg
impl CandidType for ProposalArg
sourceimpl Clone for ProposalArg
impl Clone for ProposalArg
sourcefn clone(&self) -> ProposalArg
fn clone(&self) -> ProposalArg
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ProposalArg
impl Debug for ProposalArg
sourceimpl<'de> Deserialize<'de> for ProposalArg
impl<'de> Deserialize<'de> for ProposalArg
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
sourceimpl Serialize for ProposalArg
impl Serialize for ProposalArg
Auto Trait Implementations
impl RefUnwindSafe for ProposalArg
impl Send for ProposalArg
impl Sync for ProposalArg
impl Unpin for ProposalArg
impl UnwindSafe for ProposalArg
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