pub struct StorageDescriptionBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> StorageDescriptionBuilder<S>
impl<S: State> StorageDescriptionBuilder<S>
Sourcepub fn build(self) -> StorageDescriptionwhere
S: IsComplete,
pub fn build(self) -> StorageDescriptionwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn diagnostic_label(
self,
value: impl Into<String>,
) -> StorageDescriptionBuilder<SetDiagnosticLabel<S>>where
S::DiagnosticLabel: IsUnset,
pub fn diagnostic_label(
self,
value: impl Into<String>,
) -> StorageDescriptionBuilder<SetDiagnosticLabel<S>>where
S::DiagnosticLabel: IsUnset,
Sourcepub fn maybe_diagnostic_label(
self,
value: Option<impl Into<String>>,
) -> StorageDescriptionBuilder<SetDiagnosticLabel<S>>where
S::DiagnosticLabel: IsUnset,
pub fn maybe_diagnostic_label(
self,
value: Option<impl Into<String>>,
) -> StorageDescriptionBuilder<SetDiagnosticLabel<S>>where
S::DiagnosticLabel: IsUnset,
Sourcepub fn fill_level_label(
self,
value: impl Into<String>,
) -> StorageDescriptionBuilder<SetFillLevelLabel<S>>where
S::FillLevelLabel: IsUnset,
pub fn fill_level_label(
self,
value: impl Into<String>,
) -> StorageDescriptionBuilder<SetFillLevelLabel<S>>where
S::FillLevelLabel: IsUnset,
Sourcepub fn maybe_fill_level_label(
self,
value: Option<impl Into<String>>,
) -> StorageDescriptionBuilder<SetFillLevelLabel<S>>where
S::FillLevelLabel: IsUnset,
pub fn maybe_fill_level_label(
self,
value: Option<impl Into<String>>,
) -> StorageDescriptionBuilder<SetFillLevelLabel<S>>where
S::FillLevelLabel: IsUnset,
Sourcepub fn provides_leakage_behaviour(
self,
value: bool,
) -> StorageDescriptionBuilder<SetProvidesLeakageBehaviour<S>>where
S::ProvidesLeakageBehaviour: IsUnset,
pub fn provides_leakage_behaviour(
self,
value: bool,
) -> StorageDescriptionBuilder<SetProvidesLeakageBehaviour<S>>where
S::ProvidesLeakageBehaviour: IsUnset,
Required.
Whether a LeakageBehaviour may follow.
Sourcepub fn provides_fill_level_target_profile(
self,
value: bool,
) -> StorageDescriptionBuilder<SetProvidesFillLevelTargetProfile<S>>where
S::ProvidesFillLevelTargetProfile: IsUnset,
pub fn provides_fill_level_target_profile(
self,
value: bool,
) -> StorageDescriptionBuilder<SetProvidesFillLevelTargetProfile<S>>where
S::ProvidesFillLevelTargetProfile: IsUnset,
Required.
Whether a FillLevelTargetProfile may follow.
Sourcepub fn provides_usage_forecast(
self,
value: bool,
) -> StorageDescriptionBuilder<SetProvidesUsageForecast<S>>where
S::ProvidesUsageForecast: IsUnset,
pub fn provides_usage_forecast(
self,
value: bool,
) -> StorageDescriptionBuilder<SetProvidesUsageForecast<S>>where
S::ProvidesUsageForecast: IsUnset,
Required.
Whether a UsageForecast may follow.
Sourcepub fn fill_level_range(
self,
value: NumberRange,
) -> StorageDescriptionBuilder<SetFillLevelRange<S>>where
S::FillLevelRange: IsUnset,
pub fn fill_level_range(
self,
value: NumberRange,
) -> StorageDescriptionBuilder<SetFillLevelRange<S>>where
S::FillLevelRange: IsUnset,
Required.
The range the fill level should stay within.
“When the fill_level is not within this range, the Resource Manager can ignore instructions from the CEM (except during abnormal conditions).”
Auto Trait Implementations§
impl<S> Forget for StorageDescriptionBuilder<S>
impl<S> Freeze for StorageDescriptionBuilder<S>
impl<S> Move for StorageDescriptionBuilder<S>
impl<S> RefUnwindSafe for StorageDescriptionBuilder<S>
impl<S> Send for StorageDescriptionBuilder<S>
impl<S> Sync for StorageDescriptionBuilder<S>
impl<S> Unpin for StorageDescriptionBuilder<S>
impl<S> UnsafeUnpin for StorageDescriptionBuilder<S>
impl<S> UnwindSafe for StorageDescriptionBuilder<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