Enum casper_types::system::auction::SeigniorageAllocation[][src]

pub enum SeigniorageAllocation {
    Validator {
        validator_public_key: PublicKey,
        amount: U512,
    },
    Delegator {
        delegator_public_key: PublicKey,
        validator_public_key: PublicKey,
        amount: U512,
    },
}

Information about a seigniorage allocation

Variants

Validator

Info about a seigniorage allocation for a validator

Fields of Validator

validator_public_key: PublicKey

Validator’s public key

amount: U512

Allocated amount

Delegator

Info about a seigniorage allocation for a delegator

Fields of Delegator

delegator_public_key: PublicKey

Delegator’s public key

validator_public_key: PublicKey

Validator’s public key

amount: U512

Allocated amount

Implementations

impl SeigniorageAllocation[src]

pub const fn validator(validator_public_key: PublicKey, amount: U512) -> Self[src]

pub const fn delegator(
    delegator_public_key: PublicKey,
    validator_public_key: PublicKey,
    amount: U512
) -> Self
[src]

pub fn amount(&self) -> &U512[src]

Returns the amount for a given seigniorage allocation

Trait Implementations

impl CLTyped for SeigniorageAllocation[src]

impl Clone for SeigniorageAllocation[src]

impl Debug for SeigniorageAllocation[src]

impl<'de> Deserialize<'de> for SeigniorageAllocation[src]

impl Eq for SeigniorageAllocation[src]

impl FromBytes for SeigniorageAllocation[src]

impl Ord for SeigniorageAllocation[src]

impl PartialEq<SeigniorageAllocation> for SeigniorageAllocation[src]

impl PartialOrd<SeigniorageAllocation> for SeigniorageAllocation[src]

impl Serialize for SeigniorageAllocation[src]

impl StructuralEq for SeigniorageAllocation[src]

impl StructuralPartialEq for SeigniorageAllocation[src]

impl ToBytes for SeigniorageAllocation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,