#[repr(C)]pub struct Account {}Expand description
TigerBeetle Account (128 bytes).
Accounts are the fundamental unit of accounting in TigerBeetle. They track debits and credits with pending and posted balances.
Fields§
§id: u128Unique identifier for the account.
debits_pending: u128Sum of pending debit transfers.
debits_posted: u128Sum of posted debit transfers.
credits_pending: u128Sum of pending credit transfers.
credits_posted: u128Sum of posted credit transfers.
user_data_128: u128Opaque user data for external linking (128-bit indexed).
user_data_64: u64Opaque user data for external linking (64-bit indexed).
user_data_32: u32Opaque user data for external linking (32-bit indexed).
reserved: u32Reserved for accounting policy primitives.
ledger: u32The ledger this account belongs to.
code: u16Chart of accounts code describing the account type.
flags: AccountFlagsAccount flags.
timestamp: u64Timestamp when the account was created (set by server).
Trait Implementations§
impl Copy for Account
impl Eq for Account
impl StructuralPartialEq for Account
Auto Trait Implementations§
impl Freeze for Account
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnwindSafe for Account
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