pub struct Entry {Show 14 fields
pub id: EntryId,
pub version: u32,
pub transaction_id: TransactionId,
pub account_id: AccountId,
pub journal_id: JournalId,
pub entry_type: String,
pub layer: Layer,
pub units: Decimal,
pub currency: Currency,
pub direction: DebitOrCredit,
pub sequence: u32,
pub description: Option<String>,
pub created_at: DateTime<Utc>,
pub modified_at: DateTime<Utc>,
}
Expand description
Representation of a ledger transaction entry entity.
Fields§
§id: EntryId
§version: u32
§transaction_id: TransactionId
§account_id: AccountId
§journal_id: JournalId
§entry_type: String
§layer: Layer
§units: Decimal
§currency: Currency
§direction: DebitOrCredit
§sequence: u32
§description: Option<String>
§created_at: DateTime<Utc>
§modified_at: DateTime<Utc>
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnwindSafe for Entry
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> 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 more