Struct casper_types::auction::UnbondingPurse [−][src]
Unbonding purse.
Implementations
impl UnbondingPurse
[src]
pub const fn new(
bonding_purse: URef,
validator_public_key: PublicKey,
unbonder_public_key: PublicKey,
era_of_creation: EraId,
amount: U512
) -> Self
[src]
bonding_purse: URef,
validator_public_key: PublicKey,
unbonder_public_key: PublicKey,
era_of_creation: EraId,
amount: U512
) -> Self
Creates UnbondingPurse
instance for an unbonding request.
pub fn is_validator(&self) -> bool
[src]
Checks if given request is made by a validator by checking if public key of unbonder is same as a key owned by validator.
pub fn bonding_purse(&self) -> &URef
[src]
Returns bonding purse used to make this unbonding request.
pub fn validator_public_key(&self) -> &PublicKey
[src]
Returns public key of validator.
pub fn unbonder_public_key(&self) -> &PublicKey
[src]
Returns public key of unbonder.
For withdrawal requests that originated from validator's public key through
crate::auction::Auction::withdraw_bid
entrypoint this is equal to
UnbondingPurse::validator_public_key
and UnbondingPurse::is_validator
is true
.
pub fn era_of_creation(&self) -> EraId
[src]
Returns era which was used to create this unbonding request.
pub fn amount(&self) -> &U512
[src]
Returns unbonding amount.
Trait Implementations
impl CLTyped for UnbondingPurse
[src]
impl Clone for UnbondingPurse
[src]
fn clone(&self) -> UnbondingPurse
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for UnbondingPurse
[src]
impl Debug for UnbondingPurse
[src]
impl Eq for UnbondingPurse
[src]
impl FromBytes for UnbondingPurse
[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<UnbondingPurse> for UnbondingPurse
[src]
fn eq(&self, other: &UnbondingPurse) -> bool
[src]
fn ne(&self, other: &UnbondingPurse) -> bool
[src]
impl StructuralEq for UnbondingPurse
[src]
impl StructuralPartialEq for UnbondingPurse
[src]
impl ToBytes for UnbondingPurse
[src]
Auto Trait Implementations
impl RefUnwindSafe for UnbondingPurse
[src]
impl Send for UnbondingPurse
[src]
impl Sync for UnbondingPurse
[src]
impl Unpin for UnbondingPurse
[src]
impl UnwindSafe for UnbondingPurse
[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>,