pub struct BatteryUnit {
pub base: PowerElectronicsUnit,
pub battery_state: Option<UriRef>,
pub rated_e: Option<f64>,
pub stored_e: Option<f64>,
}Expand description
An electrochemical energy storage device.
Fields§
§base: PowerElectronicsUnit§battery_state: Option<UriRef>The current state of the battery (charging, full, etc.).
rated_e: Option<f64>Full energy storage capacity of the battery. The attribute shall be a positive value.
stored_e: Option<f64>Amount of energy currently stored. The attribute shall be a positive value or zero and lower than BatteryUnit.ratedE.
Implementations§
Source§impl BatteryUnit
impl BatteryUnit
pub fn from_block(b: &RdfBlock) -> Self
Trait Implementations§
Source§impl CimElement for BatteryUnit
impl CimElement for BatteryUnit
Source§impl Clone for BatteryUnit
impl Clone for BatteryUnit
Source§fn clone(&self) -> BatteryUnit
fn clone(&self) -> BatteryUnit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BatteryUnit
impl Debug for BatteryUnit
Source§impl Default for BatteryUnit
impl Default for BatteryUnit
Source§fn default() -> BatteryUnit
fn default() -> BatteryUnit
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BatteryUnit
impl<'de> Deserialize<'de> for BatteryUnit
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
Auto Trait Implementations§
impl Freeze for BatteryUnit
impl RefUnwindSafe for BatteryUnit
impl Send for BatteryUnit
impl Sync for BatteryUnit
impl Unpin for BatteryUnit
impl UnsafeUnpin for BatteryUnit
impl UnwindSafe for BatteryUnit
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