Struct unc_primitives::action::StakeAction
source · pub struct StakeAction {
pub stake: Balance,
pub public_key: PublicKey,
}Expand description
An action which stakes signer_id tokens and setup’s validator public key
Fields§
§stake: BalanceAmount of tokens to stake.
public_key: PublicKeyValidator key which will be used to sign transactions on behalf of signer_id
Trait Implementations§
source§impl BorshDeserialize for StakeAction
impl BorshDeserialize for StakeAction
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl BorshSerialize for StakeAction
impl BorshSerialize for StakeAction
source§impl Clone for StakeAction
impl Clone for StakeAction
source§fn clone(&self) -> StakeAction
fn clone(&self) -> StakeAction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for StakeAction
impl Debug for StakeAction
source§impl<'de> Deserialize<'de> for StakeAction
impl<'de> Deserialize<'de> for StakeAction
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 From<StakeAction> for Action
impl From<StakeAction> for Action
source§fn from(stake_action: StakeAction) -> Self
fn from(stake_action: StakeAction) -> Self
Converts to this type from the input type.
source§impl PartialEq for StakeAction
impl PartialEq for StakeAction
source§fn eq(&self, other: &StakeAction) -> bool
fn eq(&self, other: &StakeAction) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for StakeAction
impl Serialize for StakeAction
impl Eq for StakeAction
impl StructuralPartialEq for StakeAction
Auto Trait Implementations§
impl Freeze for StakeAction
impl RefUnwindSafe for StakeAction
impl Send for StakeAction
impl Sync for StakeAction
impl Unpin for StakeAction
impl UnwindSafe for StakeAction
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.