pub struct LocationOfferingBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> LocationOfferingBuilder<S>
impl<S: State> LocationOfferingBuilder<S>
Sourcepub fn build(self) -> LocationOfferingwhere
S: IsComplete,
pub fn build(self) -> LocationOfferingwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn location_id(
self,
value: LocationId,
) -> LocationOfferingBuilder<SetLocationId<S>>where
S::LocationId: IsUnset,
pub fn location_id(
self,
value: LocationId,
) -> LocationOfferingBuilder<SetLocationId<S>>where
S::LocationId: IsUnset,
Required.
Location whose catalog, shelf policy, and inventory counts own this offering.
Sourcepub fn product(self, value: Product) -> LocationOfferingBuilder<SetProduct<S>>where
S::Product: IsUnset,
pub fn product(self, value: Product) -> LocationOfferingBuilder<SetProduct<S>>where
S::Product: IsUnset,
Required.
SKU and category being evaluated for sale, recommendation, inventory, and reorder work.
Sourcepub fn status(
self,
value: OfferingStatus,
) -> LocationOfferingBuilder<SetStatus<S>>where
S::Status: IsUnset,
pub fn status(
self,
value: OfferingStatus,
) -> LocationOfferingBuilder<SetStatus<S>>where
S::Status: IsUnset,
Required.
Location status that blocks inactive or discontinued items from customer-sale drafts.
Sourcepub fn usage(self, value: Usage) -> LocationOfferingBuilder<SetUsage<S>>where
S::Usage: IsUnset,
pub fn usage(self, value: Usage) -> LocationOfferingBuilder<SetUsage<S>>where
S::Usage: IsUnset,
Required.
Usage policy deciding whether the product is customer-sellable, in-house only, or both.
Sourcepub fn pos(self, value: Policy) -> LocationOfferingBuilder<SetPos<S>>where
S::Pos: IsUnset,
pub fn pos(self, value: Policy) -> LocationOfferingBuilder<SetPos<S>>where
S::Pos: IsUnset,
Required.
POS policy controlling checkout sources and price-exception approval.
Sourcepub fn inventory(
self,
value: Policy,
) -> LocationOfferingBuilder<SetInventory<S>>where
S::Inventory: IsUnset,
pub fn inventory(
self,
value: Policy,
) -> LocationOfferingBuilder<SetInventory<S>>where
S::Inventory: IsUnset,
Required.
Inventory policy controlling stock checks and low-stock attention.
Sourcepub fn reorder(self, value: Policy) -> LocationOfferingBuilder<SetReorder<S>>where
S::Reorder: IsUnset,
pub fn reorder(self, value: Policy) -> LocationOfferingBuilder<SetReorder<S>>where
S::Reorder: IsUnset,
Required.
Reorder policy controlling manager tasks, vendor notices, or no-action outcomes.
Auto Trait Implementations§
impl<S> Freeze for LocationOfferingBuilder<S>
impl<S> RefUnwindSafe for LocationOfferingBuilder<S>
impl<S> Send for LocationOfferingBuilder<S>
impl<S> Sync for LocationOfferingBuilder<S>
impl<S> Unpin for LocationOfferingBuilder<S>
impl<S> UnsafeUnpin for LocationOfferingBuilder<S>
impl<S> UnwindSafe for LocationOfferingBuilder<S>
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