Enum casper_types::system::auction::SeigniorageAllocation
source · pub enum SeigniorageAllocation {
Validator {
validator_public_key: PublicKey,
amount: U512,
},
Delegator {
delegator_public_key: PublicKey,
validator_public_key: PublicKey,
amount: U512,
},
}
Expand description
Information about a seigniorage allocation
Variants§
Validator
Info about a seigniorage allocation for a validator
Delegator
Fields
Info about a seigniorage allocation for a delegator
Implementations§
source§impl SeigniorageAllocation
impl SeigniorageAllocation
Trait Implementations§
source§impl Clone for SeigniorageAllocation
impl Clone for SeigniorageAllocation
source§fn clone(&self) -> SeigniorageAllocation
fn clone(&self) -> SeigniorageAllocation
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 SeigniorageAllocation
impl Debug for SeigniorageAllocation
source§impl<'de> Deserialize<'de> for SeigniorageAllocation
impl<'de> Deserialize<'de> for SeigniorageAllocation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FromBytes for SeigniorageAllocation
impl FromBytes for SeigniorageAllocation
source§impl Ord for SeigniorageAllocation
impl Ord for SeigniorageAllocation
source§fn cmp(&self, other: &SeigniorageAllocation) -> Ordering
fn cmp(&self, other: &SeigniorageAllocation) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SeigniorageAllocation
impl PartialEq for SeigniorageAllocation
source§fn eq(&self, other: &SeigniorageAllocation) -> bool
fn eq(&self, other: &SeigniorageAllocation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SeigniorageAllocation
impl PartialOrd for SeigniorageAllocation
source§fn partial_cmp(&self, other: &SeigniorageAllocation) -> Option<Ordering>
fn partial_cmp(&self, other: &SeigniorageAllocation) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for SeigniorageAllocation
impl Serialize for SeigniorageAllocation
source§impl ToBytes for SeigniorageAllocation
impl ToBytes for SeigniorageAllocation
source§fn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Returns the length of the
Vec<u8>
which would be returned from a successful call to
to_bytes()
or into_bytes()
. The data is not actually serialized, so this call is
relatively cheap.impl Eq for SeigniorageAllocation
impl StructuralEq for SeigniorageAllocation
impl StructuralPartialEq for SeigniorageAllocation
Auto Trait Implementations§
impl RefUnwindSafe for SeigniorageAllocation
impl Send for SeigniorageAllocation
impl Sync for SeigniorageAllocation
impl Unpin for SeigniorageAllocation
impl UnwindSafe for SeigniorageAllocation
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