pub struct LedgerEntryData {
pub asset: Option<String>,
pub qty: Option<f32>,
pub _type: Option<String>,
}Expand description
LedgerEntryData : A single ledger entry meaning an asset and qty has changed (increased or decreased).
Fields§
§asset: Option<String>An asset.
qty: Option<f32>The quantity changed of the asset. Can be positive or negative.
_type: Option<String>Trade, Fee or Withdrawal
Implementations§
Source§impl LedgerEntryData
impl LedgerEntryData
Sourcepub fn new() -> LedgerEntryData
pub fn new() -> LedgerEntryData
A single ledger entry meaning an asset and qty has changed (increased or decreased).
Trait Implementations§
Source§impl Clone for LedgerEntryData
impl Clone for LedgerEntryData
Source§fn clone(&self) -> LedgerEntryData
fn clone(&self) -> LedgerEntryData
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 LedgerEntryData
impl Debug for LedgerEntryData
Source§impl Default for LedgerEntryData
impl Default for LedgerEntryData
Source§fn default() -> LedgerEntryData
fn default() -> LedgerEntryData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LedgerEntryData
impl<'de> Deserialize<'de> for LedgerEntryData
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 LedgerEntryData
impl PartialEq for LedgerEntryData
Source§impl Serialize for LedgerEntryData
impl Serialize for LedgerEntryData
impl StructuralPartialEq for LedgerEntryData
Auto Trait Implementations§
impl Freeze for LedgerEntryData
impl RefUnwindSafe for LedgerEntryData
impl Send for LedgerEntryData
impl Sync for LedgerEntryData
impl Unpin for LedgerEntryData
impl UnwindSafe for LedgerEntryData
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