pub struct SoldOutVerdict {
pub sold_out: bool,
pub per_item: Vec<ScopedAvailability>,
}Expand description
The sold-out verdict over a WHOLE item set (a template’s full variant set,
or a single item). sold_out is true only when EVERY member reads
availability ≤ 0 — an absent (never-received) item counts as unavailable.
Fields§
§sold_out: bool§per_item: Vec<ScopedAvailability>Complete over the requested set, in input order, zeroed for items with no quants at the pivot warehouse.
Trait Implementations§
Source§impl Clone for SoldOutVerdict
impl Clone for SoldOutVerdict
Source§impl Debug for SoldOutVerdict
impl Debug for SoldOutVerdict
Source§impl<'de> Deserialize<'de> for SoldOutVerdict
impl<'de> Deserialize<'de> for SoldOutVerdict
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
Source§impl PartialEq for SoldOutVerdict
impl PartialEq for SoldOutVerdict
Source§impl Serialize for SoldOutVerdict
impl Serialize for SoldOutVerdict
impl StructuralPartialEq for SoldOutVerdict
Auto Trait Implementations§
impl Freeze for SoldOutVerdict
impl RefUnwindSafe for SoldOutVerdict
impl Send for SoldOutVerdict
impl Sync for SoldOutVerdict
impl Unpin for SoldOutVerdict
impl UnsafeUnpin for SoldOutVerdict
impl UnwindSafe for SoldOutVerdict
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