pub struct Transfer {
pub id: Option<String>,
pub timestamp: i64,
pub datetime: String,
pub currency: String,
pub amount: f64,
pub from_account: Option<String>,
pub to_account: Option<String>,
pub status: String,
pub info: Option<Value>,
}Expand description
Transfer record between accounts.
Represents a complete inter-account transfer including source account, destination account, and transfer amount.
Fields§
§id: Option<String>Transfer ID.
timestamp: i64Timestamp in milliseconds.
datetime: StringISO 8601 datetime string.
currency: StringCurrency code.
amount: f64Transfer amount.
from_account: Option<String>Source account type (e.g., spot, margin, futures, funding, option).
to_account: Option<String>Destination account type (e.g., spot, margin, futures, funding, option).
status: StringTransfer status (e.g., pending, confirmed, failed).
info: Option<Value>Raw exchange response data.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Transfer
impl<'de> Deserialize<'de> for Transfer
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Transfer, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Transfer, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Transfer
impl Serialize for Transfer
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Transfer
impl RefUnwindSafe for Transfer
impl Send for Transfer
impl Sync for Transfer
impl Unpin for Transfer
impl UnwindSafe for Transfer
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