pub struct TransactionLogEntry {
pub id: u64,
pub currency: String,
pub amount: f64,
pub balance: f64,
pub timestamp: u64,
pub transaction_type: TransactionType,
pub info: Option<String>,
}Expand description
Generic transaction log entry
Fields§
§id: u64Unique transaction identifier
currency: StringCurrency of the transaction
amount: f64Transaction amount
balance: f64Account balance after transaction
timestamp: u64Transaction timestamp
transaction_type: TransactionTypeType of transaction
info: Option<String>Additional transaction information
Trait Implementations§
Source§impl Clone for TransactionLogEntry
impl Clone for TransactionLogEntry
Source§fn clone(&self) -> TransactionLogEntry
fn clone(&self) -> TransactionLogEntry
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 TransactionLogEntry
impl Debug for TransactionLogEntry
Source§impl Default for TransactionLogEntry
impl Default for TransactionLogEntry
Source§impl<'de> Deserialize<'de> for TransactionLogEntry
impl<'de> Deserialize<'de> for TransactionLogEntry
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 Display for TransactionLogEntry
impl Display for TransactionLogEntry
Auto Trait Implementations§
impl Freeze for TransactionLogEntry
impl RefUnwindSafe for TransactionLogEntry
impl Send for TransactionLogEntry
impl Sync for TransactionLogEntry
impl Unpin for TransactionLogEntry
impl UnwindSafe for TransactionLogEntry
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