pub enum DelegationType {
NonDelegated,
Full(PoolId),
Ratio(DelegationRatio),
}
Expand description
Set the choice of delegation:
- No delegation
- Full delegation of this account to a specific pool
- Ratio of stake to multiple pools
Variants§
Trait Implementations§
source§impl Arbitrary for DelegationType
impl Arbitrary for DelegationType
source§impl Arbitrary for DelegationType
impl Arbitrary for DelegationType
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = BoxedStrategy<DelegationType>
type Strategy = BoxedStrategy<DelegationType>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
source§impl Clone for DelegationType
impl Clone for DelegationType
source§fn clone(&self) -> DelegationType
fn clone(&self) -> DelegationType
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 DelegationType
impl Debug for DelegationType
source§impl PartialEq<DelegationType> for DelegationType
impl PartialEq<DelegationType> for DelegationType
source§fn eq(&self, other: &DelegationType) -> bool
fn eq(&self, other: &DelegationType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DelegationType
impl StructuralEq for DelegationType
impl StructuralPartialEq for DelegationType
Auto Trait Implementations§
impl RefUnwindSafe for DelegationType
impl Send for DelegationType
impl Sync for DelegationType
impl Unpin for DelegationType
impl UnwindSafe for DelegationType
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