pub struct Posture {
pub cost_method: String,
pub periodic: bool,
pub anglo_saxon: bool,
pub stock_interim_delivered_account_id: Option<Uuid>,
}Expand description
The resolved posting posture. Built from the settings row, or the runtime defaults when the calling tenant has no row.
Fields§
§cost_method: Stringaverage | fifo | standard — settings vocabulary. average (the moving-average
SLE engine) is the only costing engine shipped; nothing in the posting path branches
on this yet (a standard costing tenant is refused loudly at landed-cost validation,
which owns that seam).
periodic: boolvaluation_policy = 'periodic': real-time stock posts suppressed (doors + engine legs
not_applicable); the closing flow that books them is a later increment.
anglo_saxon: boolanglo_saxon_accounting: the delivery debit swaps COGS for the interim-delivered leg.
stock_interim_delivered_account_id: Option<Uuid>The interim-delivered account the delivery debits under the anglo-saxon posture. Required loudly (fail-closed) when the posture is ON.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Posture
impl RefUnwindSafe for Posture
impl Send for Posture
impl Sync for Posture
impl Unpin for Posture
impl UnsafeUnpin for Posture
impl UnwindSafe for Posture
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
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> ⓘ
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> ⓘ
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