pub struct Leg {
pub account: Option<String>,
pub credit: Option<i32>,
pub debit: Option<i32>,
}Fields§
§account: Option<String>Account is the chart-of-accounts number this side posts to, e.g. "5300".
credit: Option<i32>Credit is the leg’s credit in exact cents. Set this or Debit, not both.
debit: Option<i32>Debit is the leg’s debit in exact cents. Set this or Credit, not both.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Leg
impl<'de> Deserialize<'de> for Leg
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
impl StructuralPartialEq for Leg
Auto Trait Implementations§
impl Freeze for Leg
impl RefUnwindSafe for Leg
impl Send for Leg
impl Sync for Leg
impl Unpin for Leg
impl UnsafeUnpin for Leg
impl UnwindSafe for Leg
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