pub struct JournalLine {
pub account_code: String,
pub debit_cents: i64,
pub credit_cents: i64,
pub tax_code: Option<String>,
pub dimension_project_id: Option<String>,
}Expand description
A single double-entry journal line denominated in integer minor units (cents).
Fields§
§account_code: String§debit_cents: i64§credit_cents: i64§tax_code: Option<String>§dimension_project_id: Option<String>Implementations§
Source§impl JournalLine
impl JournalLine
Trait Implementations§
Source§impl Clone for JournalLine
impl Clone for JournalLine
Source§fn clone(&self) -> JournalLine
fn clone(&self) -> JournalLine
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 JournalLine
impl Debug for JournalLine
Source§impl<'de> Deserialize<'de> for JournalLine
impl<'de> Deserialize<'de> for JournalLine
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<JournalLine, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<JournalLine, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for JournalLine
Source§impl PartialEq for JournalLine
impl PartialEq for JournalLine
Source§impl Serialize for JournalLine
impl Serialize for JournalLine
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 JournalLine
Auto Trait Implementations§
impl Freeze for JournalLine
impl RefUnwindSafe for JournalLine
impl Send for JournalLine
impl Sync for JournalLine
impl Unpin for JournalLine
impl UnsafeUnpin for JournalLine
impl UnwindSafe for JournalLine
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