pub struct LedgerEntry {Show 15 fields
pub info: Value,
pub id: String,
pub timestamp: i64,
pub datetime: String,
pub direction: LedgerDirection,
pub currency: String,
pub amount: f64,
pub type_: LedgerEntryType,
pub account: Option<String>,
pub reference_account: Option<String>,
pub reference_id: Option<String>,
pub before: Option<f64>,
pub after: Option<f64>,
pub status: Option<String>,
pub fee: Option<f64>,
}Expand description
Ledger entry structure.
Contains a single ledger record with balance change information.
Fields§
§info: ValueRaw exchange response data.
id: StringLedger entry ID.
timestamp: i64Timestamp in milliseconds.
datetime: StringISO 8601 datetime string.
direction: LedgerDirectionTransaction direction (in/out).
currency: StringCurrency code.
amount: f64Amount (absolute value).
type_: LedgerEntryTypeLedger entry type.
account: Option<String>Account type.
reference_account: Option<String>Reference account.
reference_id: Option<String>Reference ID (order ID, trade ID, etc.).
before: Option<f64>Balance before transaction.
after: Option<f64>Balance after transaction.
status: Option<String>Status.
fee: Option<f64>Fee amount.
Trait Implementations§
Source§impl Clone for LedgerEntry
impl Clone for LedgerEntry
Source§fn clone(&self) -> LedgerEntry
fn clone(&self) -> LedgerEntry
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 LedgerEntry
impl Debug for LedgerEntry
Source§impl<'de> Deserialize<'de> for LedgerEntry
impl<'de> Deserialize<'de> for LedgerEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LedgerEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LedgerEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for LedgerEntry
impl Serialize for LedgerEntry
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 LedgerEntry
impl RefUnwindSafe for LedgerEntry
impl Send for LedgerEntry
impl Sync for LedgerEntry
impl Unpin for LedgerEntry
impl UnwindSafe for LedgerEntry
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