pub struct CtmTemporalBoundaryStorageItem {
pub energy: NonnegativeNumber,
pub ext: Option<Value>,
pub ps: Option<f64>,
pub qs: Option<f64>,
pub uid: Uid,
}Expand description
structure to hold initial state of storage variables
JSON schema
{
"description": "structure to hold initial state of storage variables",
"type": "object",
"required": [
"energy",
"uid"
],
"properties": {
"energy": {
"description": "[MWh or pu*h] initial state of charge",
"$ref": "#/$defs/nonnegative_number"
},
"ext": {
"description": "additional storage initial condition parameters currently not supported by CTM"
},
"ps": {
"description": "[MW or pu] initial active power injection",
"type": "number"
},
"qs": {
"description": "[MW or pu] initial reactive power injection",
"type": "number"
},
"uid": {
"description": "uid of storage this record refers to",
"$ref": "#/$defs/uid"
}
}
}Fields§
§energy: NonnegativeNumber[MWh or pu*h] initial state of charge
ext: Option<Value>additional storage initial condition parameters currently not supported by CTM
ps: Option<f64>§qs: Option<f64>§uid: Uiduid of storage this record refers to
Implementations§
Trait Implementations§
Source§impl Clone for CtmTemporalBoundaryStorageItem
impl Clone for CtmTemporalBoundaryStorageItem
Source§fn clone(&self) -> CtmTemporalBoundaryStorageItem
fn clone(&self) -> CtmTemporalBoundaryStorageItem
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for CtmTemporalBoundaryStorageItem
impl<'de> Deserialize<'de> for CtmTemporalBoundaryStorageItem
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 From<&CtmTemporalBoundaryStorageItem> for CtmTemporalBoundaryStorageItem
impl From<&CtmTemporalBoundaryStorageItem> for CtmTemporalBoundaryStorageItem
Source§fn from(value: &CtmTemporalBoundaryStorageItem) -> Self
fn from(value: &CtmTemporalBoundaryStorageItem) -> Self
Converts to this type from the input type.
Source§impl From<CtmTemporalBoundaryStorageItem> for CtmTemporalBoundaryStorageItem
impl From<CtmTemporalBoundaryStorageItem> for CtmTemporalBoundaryStorageItem
Source§fn from(value: CtmTemporalBoundaryStorageItem) -> Self
fn from(value: CtmTemporalBoundaryStorageItem) -> Self
Converts to this type from the input type.
Source§impl TryFrom<CtmTemporalBoundaryStorageItem> for CtmTemporalBoundaryStorageItem
impl TryFrom<CtmTemporalBoundaryStorageItem> for CtmTemporalBoundaryStorageItem
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: CtmTemporalBoundaryStorageItem,
) -> Result<Self, ConversionError>
fn try_from( value: CtmTemporalBoundaryStorageItem, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CtmTemporalBoundaryStorageItem
impl RefUnwindSafe for CtmTemporalBoundaryStorageItem
impl Send for CtmTemporalBoundaryStorageItem
impl Sync for CtmTemporalBoundaryStorageItem
impl Unpin for CtmTemporalBoundaryStorageItem
impl UnwindSafe for CtmTemporalBoundaryStorageItem
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)