pub enum VoteAction {
OffChain,
Treasury {
action: TreasuryGovernanceAction,
},
Parameters {
action: ParametersGovernanceAction,
},
}
Expand description
this is the action that will result of the vote
Variants§
OffChain
the action if off chain or not relevant to the blockchain
Treasury
Fields
§
action: TreasuryGovernanceAction
control the treasury
Parameters
Fields
§
action: ParametersGovernanceAction
control the parameters
Implementations§
source§impl VoteAction
impl VoteAction
fn serialize_in(&self, bb: ByteBuilder<VotePlan>) -> ByteBuilder<VotePlan>
Trait Implementations§
source§impl Arbitrary for VoteAction
impl Arbitrary for VoteAction
source§impl Clone for VoteAction
impl Clone for VoteAction
source§fn clone(&self) -> VoteAction
fn clone(&self) -> VoteAction
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 VoteAction
impl Debug for VoteAction
source§impl Deserialize for VoteAction
impl Deserialize for VoteAction
fn deserialize<R: Read>(codec: &mut Codec<R>) -> Result<Self, ReadError>
fn deserialize_validate<R>(codec: &mut Codec<R>) -> Result<(), ReadError>where R: Read,
source§impl PartialEq<VoteAction> for VoteAction
impl PartialEq<VoteAction> for VoteAction
source§fn eq(&self, other: &VoteAction) -> bool
fn eq(&self, other: &VoteAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for VoteAction
impl StructuralEq for VoteAction
impl StructuralPartialEq for VoteAction
Auto Trait Implementations§
impl RefUnwindSafe for VoteAction
impl Send for VoteAction
impl Sync for VoteAction
impl Unpin for VoteAction
impl UnwindSafe for VoteAction
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