pub struct LcCostLine {
pub name: String,
pub account_id: Uuid,
pub split_method: String,
pub amount: Decimal,
}Expand description
One landed-cost charge line of a draft landed cost. account_id is the credit side
(required — a line without it is rejected); split_method is quantity | value |
weight; amount may be negative — a negative landed cost is the REVERSAL pattern
(a validated landed cost can never cancel, so corrections re-book with swapped legs).
Fields§
§name: String§account_id: Uuid§split_method: String§amount: DecimalTrait Implementations§
Source§impl Clone for LcCostLine
impl Clone for LcCostLine
Auto Trait Implementations§
impl Freeze for LcCostLine
impl RefUnwindSafe for LcCostLine
impl Send for LcCostLine
impl Sync for LcCostLine
impl Unpin for LcCostLine
impl UnsafeUnpin for LcCostLine
impl UnwindSafe for LcCostLine
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,
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