pub struct TariffElementBuilder<S: State = Empty> { /* private fields */ }Available on crate feature
v2_3_0 only.Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> TariffElementBuilder<S>
impl<S: State> TariffElementBuilder<S>
Sourcepub fn build(self) -> TariffElementwhere
S: IsComplete,
pub fn build(self) -> TariffElementwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn price_components(
self,
value: impl Into<Vec<PriceComponent>>,
) -> TariffElementBuilder<SetPriceComponents<S>>where
S::PriceComponents: IsUnset,
pub fn price_components(
self,
value: impl Into<Vec<PriceComponent>>,
) -> TariffElementBuilder<SetPriceComponents<S>>where
S::PriceComponents: IsUnset,
Required.
How each priced dimension is priced. Cardinality +.
Sourcepub fn restrictions(
self,
value: impl Into<TariffRestrictions>,
) -> TariffElementBuilder<SetRestrictions<S>>where
S::Restrictions: IsUnset,
pub fn restrictions(
self,
value: impl Into<TariffRestrictions>,
) -> TariffElementBuilder<SetRestrictions<S>>where
S::Restrictions: IsUnset,
Sourcepub fn maybe_restrictions(
self,
value: Option<impl Into<TariffRestrictions>>,
) -> TariffElementBuilder<SetRestrictions<S>>where
S::Restrictions: IsUnset,
pub fn maybe_restrictions(
self,
value: Option<impl Into<TariffRestrictions>>,
) -> TariffElementBuilder<SetRestrictions<S>>where
S::Restrictions: IsUnset,
Sourcepub fn extensions(
self,
value: impl Into<Extensions>,
) -> TariffElementBuilder<SetExtensions<S>>where
S::Extensions: IsUnset,
pub fn extensions(
self,
value: impl Into<Extensions>,
) -> TariffElementBuilder<SetExtensions<S>>where
S::Extensions: IsUnset,
Sourcepub fn maybe_extensions(
self,
value: Option<impl Into<Extensions>>,
) -> TariffElementBuilder<SetExtensions<S>>where
S::Extensions: IsUnset,
pub fn maybe_extensions(
self,
value: Option<impl Into<Extensions>>,
) -> TariffElementBuilder<SetExtensions<S>>where
S::Extensions: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for TariffElementBuilder<S>
impl<S> RefUnwindSafe for TariffElementBuilder<S>
impl<S> Send for TariffElementBuilder<S>
impl<S> Sync for TariffElementBuilder<S>
impl<S> Unpin for TariffElementBuilder<S>
impl<S> UnsafeUnpin for TariffElementBuilder<S>
impl<S> UnwindSafe for TariffElementBuilder<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