pub struct PendingWithdrawal {
pub owner: Address,
pub receiver: Address,
pub escrow_shares: u128,
pub expected_assets: u128,
pub requested_at_ns: TimestampNs,
}Expand description
A pending withdrawal request in the queue.
Represents a user’s request to redeem shares for underlying assets. The shares are held in escrow until the withdrawal is processed.
Fields§
§owner: Address§receiver: Address§expected_assets: u128§requested_at_ns: TimestampNsImplementations§
Trait Implementations§
Source§impl BorshDeserialize for PendingWithdrawal
impl BorshDeserialize for PendingWithdrawal
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
§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.
§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 BorshSchema for PendingWithdrawal
impl BorshSchema for PendingWithdrawal
Source§fn declaration() -> Declaration
fn declaration() -> Declaration
Get the name of the type without brackets.
Source§fn add_definitions_recursively(
definitions: &mut BTreeMap<Declaration, Definition>,
)
fn add_definitions_recursively( definitions: &mut BTreeMap<Declaration, Definition>, )
Recursively, using DFS, add type definitions required for this type.
Type definition partially explains how to serialize/deserialize a type.
Source§impl BorshSerialize for PendingWithdrawal
impl BorshSerialize for PendingWithdrawal
Source§impl Clone for PendingWithdrawal
impl Clone for PendingWithdrawal
Source§fn clone(&self) -> PendingWithdrawal
fn clone(&self) -> PendingWithdrawal
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 PendingWithdrawal
impl Debug for PendingWithdrawal
Source§impl<'de> Deserialize<'de> for PendingWithdrawal
impl<'de> Deserialize<'de> for PendingWithdrawal
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 PartialEq for PendingWithdrawal
impl PartialEq for PendingWithdrawal
Source§impl Serialize for PendingWithdrawal
impl Serialize for PendingWithdrawal
impl Eq for PendingWithdrawal
impl StructuralPartialEq for PendingWithdrawal
Auto Trait Implementations§
impl Freeze for PendingWithdrawal
impl RefUnwindSafe for PendingWithdrawal
impl Send for PendingWithdrawal
impl Sync for PendingWithdrawal
impl Unpin for PendingWithdrawal
impl UnwindSafe for PendingWithdrawal
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