pub struct StakeDepositInput {
pub operator: PublicAddress,
pub max_amount: u64,
}Fields§
§operator: PublicAddressThe address of operator of the target pool
max_amount: u64The amount of stakes that the stake owner wants to stake to the target pool. The prefix ‘max’ is denoted here because the actual amount to be staked can be less than the wanted amount.
Trait Implementations§
Source§impl BorshDeserialize for StakeDepositInput
impl BorshDeserialize for StakeDepositInput
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 StakeDepositInput
impl BorshSerialize for StakeDepositInput
Source§impl Clone for StakeDepositInput
impl Clone for StakeDepositInput
Source§fn clone(&self) -> StakeDepositInput
fn clone(&self) -> StakeDepositInput
Returns a duplicate 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 StakeDepositInput
impl Debug for StakeDepositInput
Source§impl Deserializable for StakeDepositInput
impl Deserializable for StakeDepositInput
Source§impl PartialEq for StakeDepositInput
impl PartialEq for StakeDepositInput
Source§impl Serializable for StakeDepositInput
impl Serializable for StakeDepositInput
impl Eq for StakeDepositInput
impl StructuralPartialEq for StakeDepositInput
Auto Trait Implementations§
impl Freeze for StakeDepositInput
impl RefUnwindSafe for StakeDepositInput
impl Send for StakeDepositInput
impl Sync for StakeDepositInput
impl Unpin for StakeDepositInput
impl UnwindSafe for StakeDepositInput
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