pub enum TreasuryGovernanceAction {
NoOp,
TransferToRewards {
value: Value,
},
}
Variants§
Implementations§
source§impl TreasuryGovernanceAction
impl TreasuryGovernanceAction
pub fn to_type(&self) -> TreasuryGovernanceActionType
pub(crate) fn serialize_in(&self, bb: ByteBuilder<Self>) -> ByteBuilder<Self>
Trait Implementations§
source§impl Arbitrary for TreasuryGovernanceAction
impl Arbitrary for TreasuryGovernanceAction
source§impl Clone for TreasuryGovernanceAction
impl Clone for TreasuryGovernanceAction
source§fn clone(&self) -> TreasuryGovernanceAction
fn clone(&self) -> TreasuryGovernanceAction
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 TreasuryGovernanceAction
impl Debug for TreasuryGovernanceAction
source§impl Deserialize for TreasuryGovernanceAction
impl Deserialize for TreasuryGovernanceAction
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<TreasuryGovernanceAction> for TreasuryGovernanceAction
impl PartialEq<TreasuryGovernanceAction> for TreasuryGovernanceAction
source§fn eq(&self, other: &TreasuryGovernanceAction) -> bool
fn eq(&self, other: &TreasuryGovernanceAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TreasuryGovernanceAction
impl StructuralEq for TreasuryGovernanceAction
impl StructuralPartialEq for TreasuryGovernanceAction
Auto Trait Implementations§
impl RefUnwindSafe for TreasuryGovernanceAction
impl Send for TreasuryGovernanceAction
impl Sync for TreasuryGovernanceAction
impl Unpin for TreasuryGovernanceAction
impl UnwindSafe for TreasuryGovernanceAction
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