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.
Source-derived location id carried by this retail contract.
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.
Source-derived product carried by this retail contract.
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.
Source-derived status carried by this retail contract.
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.
Source-derived usage carried by this retail contract.
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.
Source-derived pos carried by this retail contract.
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.
Source-derived inventory carried by this retail contract.
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.
Source-derived reorder carried by this retail contract.
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