Struct chain_impl_mockchain::certificate::vote_plan::Proposal
source · pub struct Proposal {
external_id: ExternalProposalId,
options: Options,
action: VoteAction,
}
Expand description
a proposal with the associated external proposal identifier which leads to retrieving data from outside of the blockchain with its unique identifier and the funding plan required for the proposal to be operated.
Fields§
§external_id: ExternalProposalId
§options: Options
§action: VoteAction
Implementations§
source§impl Proposal
impl Proposal
pub fn new( external_id: ExternalProposalId, options: Options, action: VoteAction ) -> Self
pub fn check_governance(&self, governance: &Governance) -> bool
pub fn external_id(&self) -> &ExternalProposalId
pub fn options(&self) -> &Options
pub fn action(&self) -> &VoteAction
fn serialize_in(&self, bb: ByteBuilder<VotePlan>) -> ByteBuilder<VotePlan>
Trait Implementations§
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.
source§impl PartialEq<Proposal> for Proposal
impl PartialEq<Proposal> for Proposal
impl Eq for Proposal
impl StructuralEq for Proposal
impl StructuralPartialEq for Proposal
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§
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