pub struct StorageDescription {
pub diagnostic_label: Option<String>,
pub fill_level_label: Option<String>,
pub provides_leakage_behaviour: bool,
pub provides_fill_level_target_profile: bool,
pub provides_usage_forecast: bool,
pub fill_level_range: NumberRange,
}Expand description
The storage whose fill level the CEM is planning against.
Fields§
§diagnostic_label: Option<String>Human-readable, for debugging only.
fill_level_label: Option<String>What the fill level is measured in — “percentage state of charge”, “temperature in Celsius”. For humans; nothing computes with it.
provides_leakage_behaviour: boolWhether a LeakageBehaviour may follow.
provides_fill_level_target_profile: boolWhether a FillLevelTargetProfile may follow.
provides_usage_forecast: boolWhether a UsageForecast may follow.
fill_level_range: NumberRangeThe 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).”
Implementations§
Source§impl StorageDescription
impl StorageDescription
Sourcepub fn builder() -> StorageDescriptionBuilder
pub fn builder() -> StorageDescriptionBuilder
Create an instance of StorageDescription using the builder syntax
Trait Implementations§
Source§impl Clone for StorageDescription
impl Clone for StorageDescription
Source§impl Debug for StorageDescription
impl Debug for StorageDescription
Source§impl<'de> Deserialize<'de> for StorageDescription
impl<'de> Deserialize<'de> for StorageDescription
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 StorageDescription
impl PartialEq for StorageDescription
Source§impl Serialize for StorageDescription
impl Serialize for StorageDescription
impl StructuralPartialEq for StorageDescription
Auto Trait Implementations§
impl Forget for StorageDescription
impl Freeze for StorageDescription
impl RefUnwindSafe for StorageDescription
impl Send for StorageDescription
impl Sync for StorageDescription
impl Unpin for StorageDescription
impl UnsafeUnpin for StorageDescription
impl UnwindSafe for StorageDescription
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