pub struct LedgerEntry {Show 15 fields
pub id: Option<String>,
pub timestamp: Option<i64>,
pub datetime: Option<String>,
pub direction: Option<String>,
pub account: Option<String>,
pub reference_id: Option<String>,
pub reference_account: Option<String>,
pub entry_type: Option<String>,
pub amount: Option<f64>,
pub currency: Option<String>,
pub before: Option<f64>,
pub after: Option<f64>,
pub status: Option<String>,
pub fee: Option<Fee>,
pub raw: Value,
}Expand description
Unified ledger entry. Mirrors the TS LedgerEntry interface.
Fields§
§id: Option<String>§timestamp: Option<i64>§datetime: Option<String>§direction: Option<String>§account: Option<String>§reference_id: Option<String>§reference_account: Option<String>§entry_type: Option<String>§amount: Option<f64>§currency: Option<String>§before: Option<f64>§after: Option<f64>§status: Option<String>§fee: Option<Fee>§raw: ValueImplementations§
Source§impl LedgerEntry
impl LedgerEntry
pub fn from_value(v: Value) -> Self
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 (const: unstable) · 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 Default for LedgerEntry
impl Default for LedgerEntry
Source§fn default() -> LedgerEntry
fn default() -> LedgerEntry
Returns the “default value” for a type. 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 UnsafeUnpin 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