pub struct WithdrawingState {
pub op_id: u64,
pub index: u32,
pub remaining: u128,
pub collected: u128,
pub receiver: Address,
pub owner: Address,
pub escrow_shares: u128,
}Expand description
Collecting liquidity from targets to satisfy a user withdrawal/redeem request.
§Transitions
- Advance within queue:
Withdrawing(index increments) while collecting funds. - When enough is collected to satisfy the request:
Payout. - If the op is stopped or cannot proceed and needs to refund:
Idle(escrow_shares refunded).
Fields§
§op_id: u64§index: u32§remaining: u128§collected: u128§receiver: Address§owner: AddressImplementations§
Trait Implementations§
Source§impl BorshDeserialize for WithdrawingState
impl BorshDeserialize for WithdrawingState
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 WithdrawingState
impl BorshSchema for WithdrawingState
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 WithdrawingState
impl BorshSerialize for WithdrawingState
Source§impl Clone for WithdrawingState
impl Clone for WithdrawingState
Source§fn clone(&self) -> WithdrawingState
fn clone(&self) -> WithdrawingState
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 WithdrawingState
impl Debug for WithdrawingState
Source§impl<'de> Deserialize<'de> for WithdrawingState
impl<'de> Deserialize<'de> for WithdrawingState
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<WithdrawingState> for OpState
impl From<WithdrawingState> for OpState
Source§fn from(value: WithdrawingState) -> Self
fn from(value: WithdrawingState) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WithdrawingState
impl PartialEq for WithdrawingState
Source§impl Serialize for WithdrawingState
impl Serialize for WithdrawingState
impl Eq for WithdrawingState
impl StructuralPartialEq for WithdrawingState
Auto Trait Implementations§
impl Freeze for WithdrawingState
impl RefUnwindSafe for WithdrawingState
impl Send for WithdrawingState
impl Sync for WithdrawingState
impl Unpin for WithdrawingState
impl UnwindSafe for WithdrawingState
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