pub struct InternalTransfer {
pub id: i64,
pub currency: String,
pub amount: f64,
pub direction: TransferDirection,
pub other_side: String,
pub state: InternalTransferState,
pub transfer_type: InternalTransferType,
pub created_timestamp: i64,
pub updated_timestamp: i64,
}Expand description
Internal transfer information (between subaccounts or users)
This model represents transfers within the Deribit platform, not blockchain withdrawals/deposits.
Fields§
§id: i64Transfer ID
currency: StringCurrency being transferred (e.g., “BTC”, “ETH”)
amount: f64Transfer amount
direction: TransferDirectionDirection of the transfer (payment or income)
other_side: StringThe other party in the transfer (username or subaccount name)
state: InternalTransferStateCurrent transfer state
transfer_type: InternalTransferTypeType of transfer (subaccount or user)
created_timestamp: i64Creation timestamp in milliseconds since Unix epoch
updated_timestamp: i64Last update timestamp in milliseconds since Unix epoch
Implementations§
Source§impl InternalTransfer
impl InternalTransfer
Sourcepub fn is_confirmed(&self) -> bool
pub fn is_confirmed(&self) -> bool
Returns true if the transfer is confirmed
Sourcepub fn is_cancelled(&self) -> bool
pub fn is_cancelled(&self) -> bool
Returns true if the transfer is cancelled
Sourcepub fn is_pending(&self) -> bool
pub fn is_pending(&self) -> bool
Returns true if the transfer is pending (prepared or waiting for admin)
Sourcepub fn is_payment(&self) -> bool
pub fn is_payment(&self) -> bool
Returns true if this is an outgoing payment
Trait Implementations§
Source§impl Clone for InternalTransfer
impl Clone for InternalTransfer
Source§fn clone(&self) -> InternalTransfer
fn clone(&self) -> InternalTransfer
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 InternalTransfer
impl Debug for InternalTransfer
Source§impl<'de> Deserialize<'de> for InternalTransfer
impl<'de> Deserialize<'de> for InternalTransfer
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 InternalTransfer
impl PartialEq for InternalTransfer
Source§impl Serialize for InternalTransfer
impl Serialize for InternalTransfer
impl StructuralPartialEq for InternalTransfer
Auto Trait Implementations§
impl Freeze for InternalTransfer
impl RefUnwindSafe for InternalTransfer
impl Send for InternalTransfer
impl Sync for InternalTransfer
impl Unpin for InternalTransfer
impl UnsafeUnpin for InternalTransfer
impl UnwindSafe for InternalTransfer
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