pub struct Transaction { /* private fields */ }
Expand description
Represents an accounting operation that deals with the actual money.
Implementations§
Source§impl Transaction
impl Transaction
pub const fn new( client_id: ClientId, id: TransactionId, amount: Amount, kind: TransactionKind, ) -> Self
pub const fn id(&self) -> TransactionId
pub const fn client_id(&self) -> ClientId
pub const fn kind(&self) -> TransactionKind
pub const fn amount(&self) -> &Amount
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Transaction
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
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