Struct cala_ledger::balance::BalanceSnapshot
source · pub struct BalanceSnapshot {Show 19 fields
pub journal_id: JournalId,
pub account_id: AccountId,
pub currency: Currency,
pub version: u32,
pub created_at: DateTime<Utc>,
pub modified_at: DateTime<Utc>,
pub entry_id: EntryId,
pub settled_dr_balance: Decimal,
pub settled_cr_balance: Decimal,
pub settled_entry_id: EntryId,
pub settled_modified_at: DateTime<Utc>,
pub pending_dr_balance: Decimal,
pub pending_cr_balance: Decimal,
pub pending_entry_id: EntryId,
pub pending_modified_at: DateTime<Utc>,
pub encumbrance_dr_balance: Decimal,
pub encumbrance_cr_balance: Decimal,
pub encumbrance_entry_id: EntryId,
pub encumbrance_modified_at: DateTime<Utc>,
}Fields§
§journal_id: JournalId§account_id: AccountId§currency: Currency§version: u32§created_at: DateTime<Utc>§modified_at: DateTime<Utc>§entry_id: EntryId§settled_dr_balance: Decimal§settled_cr_balance: Decimal§settled_entry_id: EntryId§settled_modified_at: DateTime<Utc>§pending_dr_balance: Decimal§pending_cr_balance: Decimal§pending_entry_id: EntryId§pending_modified_at: DateTime<Utc>§encumbrance_dr_balance: Decimal§encumbrance_cr_balance: Decimal§encumbrance_entry_id: EntryId§encumbrance_modified_at: DateTime<Utc>Trait Implementations§
source§impl Clone for BalanceSnapshot
impl Clone for BalanceSnapshot
source§fn clone(&self) -> BalanceSnapshot
fn clone(&self) -> BalanceSnapshot
Returns a copy 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 BalanceSnapshot
impl Debug for BalanceSnapshot
source§impl<'de> Deserialize<'de> for BalanceSnapshot
impl<'de> Deserialize<'de> for BalanceSnapshot
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BalanceSnapshot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BalanceSnapshot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<BalanceSnapshot> for Balance
impl From<BalanceSnapshot> for Balance
source§fn from(_: BalanceSnapshot) -> Self
fn from(_: BalanceSnapshot) -> Self
Converts to this type from the input type.
source§impl PartialEq for BalanceSnapshot
impl PartialEq for BalanceSnapshot
source§fn eq(&self, other: &BalanceSnapshot) -> bool
fn eq(&self, other: &BalanceSnapshot) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for BalanceSnapshot
impl Serialize for BalanceSnapshot
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for BalanceSnapshot
Auto Trait Implementations§
impl Freeze for BalanceSnapshot
impl RefUnwindSafe for BalanceSnapshot
impl Send for BalanceSnapshot
impl Sync for BalanceSnapshot
impl Unpin for BalanceSnapshot
impl UnwindSafe for BalanceSnapshot
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request