Struct casper_types::auction::SeigniorageRecipient [−][src]
The seigniorage recipient details.
Implementations
impl SeigniorageRecipient
[src]
pub fn stake(&self) -> &U512
[src]
Returns stake of the provided recipient
pub fn delegation_rate(&self) -> &DelegationRate
[src]
Returns delegation rate of the provided recipient
pub fn delegators(&self) -> &BTreeMap<PublicKey, Delegator>
[src]
Returns delegators of the provided recipient
pub fn total_stake(&self) -> U512
[src]
Calculates total stake, including delegators' total stake
pub fn delegator_total_stake(&self) -> U512
[src]
Caculates total stake for all delegators
Trait Implementations
impl CLTyped for SeigniorageRecipient
[src]
impl Clone for SeigniorageRecipient
[src]
fn clone(&self) -> SeigniorageRecipient
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SeigniorageRecipient
[src]
impl Default for SeigniorageRecipient
[src]
fn default() -> SeigniorageRecipient
[src]
impl From<&'_ Bid> for SeigniorageRecipient
[src]
impl FromBytes for SeigniorageRecipient
[src]
fn from_bytes(bytes: &[u8]) -> Result<(Self, &[u8]), Error>
[src]
fn from_vec(bytes: Vec<u8>) -> Result<(Self, Vec<u8>), Error>
[src]
impl PartialEq<SeigniorageRecipient> for SeigniorageRecipient
[src]
fn eq(&self, other: &SeigniorageRecipient) -> bool
[src]
fn ne(&self, other: &SeigniorageRecipient) -> bool
[src]
impl StructuralPartialEq for SeigniorageRecipient
[src]
impl ToBytes for SeigniorageRecipient
[src]
Auto Trait Implementations
impl RefUnwindSafe for SeigniorageRecipient
[src]
impl Send for SeigniorageRecipient
[src]
impl Sync for SeigniorageRecipient
[src]
impl Unpin for SeigniorageRecipient
[src]
impl UnwindSafe for SeigniorageRecipient
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,