Struct chain_impl_mockchain::testing::scenario::template::ProposalDef
source · pub struct ProposalDef {
id: ExternalProposalId,
options: u8,
action_type: VoteAction,
}
Fields§
§id: ExternalProposalId
§options: u8
§action_type: VoteAction
Implementations§
source§impl ProposalDef
impl ProposalDef
pub fn id(&self) -> ExternalProposalId
Trait Implementations§
source§impl Clone for ProposalDef
impl Clone for ProposalDef
source§fn clone(&self) -> ProposalDef
fn clone(&self) -> ProposalDef
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ProposalDef
impl Debug for ProposalDef
source§impl From<ProposalDef> for Proposal
impl From<ProposalDef> for Proposal
source§fn from(dto: ProposalDef) -> Self
fn from(dto: ProposalDef) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for ProposalDef
impl Send for ProposalDef
impl Sync for ProposalDef
impl Unpin for ProposalDef
impl UnwindSafe for ProposalDef
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