Struct jormungandr_lib::interfaces::Stake
source · pub struct Stake(Stake);
Expand description
Stake in the blockchain, always printed as absolute Lovelace
Stake has some property to be human readable on standard display
let stake: Stake = StdStake(64).into();
println!("stake: {}", stake);
Tuple Fields§
§0: Stake
Trait Implementations§
source§impl<'de> Deserialize<'de> for Stake
impl<'de> Deserialize<'de> for Stake
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 Ord for Stake
impl Ord for Stake
source§impl PartialEq<Stake> for Stake
impl PartialEq<Stake> for Stake
source§impl PartialOrd<Stake> for Stake
impl PartialOrd<Stake> for Stake
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 moreimpl Copy for Stake
impl Eq for Stake
impl StructuralEq for Stake
impl StructuralPartialEq for Stake
Auto Trait Implementations§
impl RefUnwindSafe for Stake
impl Send for Stake
impl Sync for Stake
impl Unpin for Stake
impl UnwindSafe for Stake
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