[−][src]Struct casper_types::auction::Bid
An entry in a founding validator map.
Fields
bonding_purse: URefThe purse that was used for bonding.
staked_amount: U512The total amount of staked tokens.
delegation_rate: DelegationRateDelegation rate
funds_locked: Option<EraId>A flag that represents a winning entry.
Some indicates locked funds for a specific era and an autowin status, and None case
means that funds are unlocked and autowin status is removed.
Implementations
impl Bid[src]
pub fn new_locked(
bonding_purse: URef,
staked_amount: U512,
funds_locked: EraId
) -> Self[src]
bonding_purse: URef,
staked_amount: U512,
funds_locked: EraId
) -> Self
Creates new instance of a bid with locked funds.
pub fn can_release_funds(&self) -> bool[src]
Checks if a given founding validator can release its funds.
pub fn can_withdraw_funds(&self) -> bool[src]
Checks if a given founding validator can withdraw its funds.
Trait Implementations
impl CLTyped for Bid[src]
impl Debug for Bid[src]
impl<'de> Deserialize<'de> for Bid[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl<'_> From<&'_ Bid> for SeigniorageRecipient[src]
impl FromBytes for Bid[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<Bid> for Bid[src]
impl Serialize for Bid[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructuralPartialEq for Bid[src]
impl ToBytes for Bid[src]
Auto Trait Implementations
impl RefUnwindSafe for Bid
impl Send for Bid
impl Sync for Bid
impl Unpin for Bid
impl UnwindSafe for Bid
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
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, 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>,