pub struct JournalLineDto {Show 40 fields
pub id: JournalLineId,
pub journal_id: Uuid,
pub branch_id: Option<Uuid>,
pub party_type: Option<PartyType>,
pub party_id: Option<Uuid>,
pub line_number: i32,
pub account_id: Uuid,
pub account_number: String,
pub account_name: String,
pub debit_amount: Decimal,
pub credit_amount: Decimal,
pub currency: String,
pub exchange_rate: Decimal,
pub base_debit_amount: Decimal,
pub base_credit_amount: Decimal,
pub description: Option<String>,
pub cost_center_id: Option<Uuid>,
pub project_id: Option<Uuid>,
pub department_id: Option<Uuid>,
pub dimensions: Option<Value>,
pub source_type: Option<String>,
pub source_id: Option<Uuid>,
pub source_reference: Option<String>,
pub is_tax_line: bool,
pub tax_rate: Option<Decimal>,
pub tax_base_amount: Option<Decimal>,
pub related_line_id: Option<Uuid>,
pub has_quantity: bool,
pub quantity: Option<Decimal>,
pub unit: Option<String>,
pub unit_price: Option<Decimal>,
pub is_reconciled: bool,
pub reconciliation_id: Option<Uuid>,
pub reconciled_at: Option<DateTime<Utc>>,
pub full_reconcile_id: Option<Uuid>,
pub is_posted: bool,
pub ledger_id: Option<Uuid>,
pub posted_at: Option<DateTime<Utc>>,
pub tags: Value,
pub data: Value,
}Expand description
Data transfer object for JournalLine
This is the public representation of JournalLine for other modules.
Fields§
§id: JournalLineId§journal_id: Uuid§branch_id: Option<Uuid>§party_type: Option<PartyType>§party_id: Option<Uuid>§line_number: i32§account_id: Uuid§account_number: String§account_name: String§debit_amount: Decimal§credit_amount: Decimal§currency: String§exchange_rate: Decimal§base_debit_amount: Decimal§base_credit_amount: Decimal§description: Option<String>§cost_center_id: Option<Uuid>§project_id: Option<Uuid>§department_id: Option<Uuid>§dimensions: Option<Value>§source_type: Option<String>§source_id: Option<Uuid>§source_reference: Option<String>§is_tax_line: bool§tax_rate: Option<Decimal>§tax_base_amount: Option<Decimal>§has_quantity: bool§quantity: Option<Decimal>§unit: Option<String>§unit_price: Option<Decimal>§is_reconciled: bool§reconciliation_id: Option<Uuid>§reconciled_at: Option<DateTime<Utc>>§full_reconcile_id: Option<Uuid>§is_posted: bool§ledger_id: Option<Uuid>§posted_at: Option<DateTime<Utc>>§data: ValueTrait Implementations§
Source§impl Clone for JournalLineDto
impl Clone for JournalLineDto
Source§impl Debug for JournalLineDto
impl Debug for JournalLineDto
Source§impl<'de> Deserialize<'de> for JournalLineDto
impl<'de> Deserialize<'de> for JournalLineDto
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
Auto Trait Implementations§
impl Freeze for JournalLineDto
impl RefUnwindSafe for JournalLineDto
impl Send for JournalLineDto
impl Sync for JournalLineDto
impl Unpin for JournalLineDto
impl UnsafeUnpin for JournalLineDto
impl UnwindSafe for JournalLineDto
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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