pub struct CtmTemporalBoundaryGenItem {
pub down_time: Option<NonnegativeNumber>,
pub ext: Option<Value>,
pub in_service_time: Option<NonnegativeNumber>,
pub pg: f64,
pub qg: Option<f64>,
pub uid: Uid,
}Expand description
structure to hold initial state of generator variables
JSON schema
{
"description": "structure to hold initial state of generator variables",
"type": "object",
"required": [
"pg",
"uid"
],
"properties": {
"down_time": {
"description": "[h] if in service, zero, else time the unit has been out of service",
"$ref": "#/$defs/nonnegative_number"
},
"ext": {
"description": "additional generator initial condition parameters currently not supported by CTM"
},
"in_service_time": {
"description": "[h] if in service, time the unit has been in service, zero otherwise",
"$ref": "#/$defs/nonnegative_number"
},
"pg": {
"description": "[MW or pu] initial active power injection",
"type": "number"
},
"qg": {
"description": "[MW or pu] initial reactive power injection",
"type": "number"
},
"uid": {
"description": "uid of generator this record refers to",
"$ref": "#/$defs/uid"
}
}
}Fields§
§down_time: Option<NonnegativeNumber>[h] if in service, zero, else time the unit has been out of service
ext: Option<Value>additional generator initial condition parameters currently not supported by CTM
in_service_time: Option<NonnegativeNumber>[h] if in service, time the unit has been in service, zero otherwise
pg: f64§qg: Option<f64>§uid: Uiduid of generator this record refers to
Implementations§
Source§impl CtmTemporalBoundaryGenItem
impl CtmTemporalBoundaryGenItem
pub fn builder() -> CtmTemporalBoundaryGenItem
Trait Implementations§
Source§impl Clone for CtmTemporalBoundaryGenItem
impl Clone for CtmTemporalBoundaryGenItem
Source§fn clone(&self) -> CtmTemporalBoundaryGenItem
fn clone(&self) -> CtmTemporalBoundaryGenItem
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 Debug for CtmTemporalBoundaryGenItem
impl Debug for CtmTemporalBoundaryGenItem
Source§impl<'de> Deserialize<'de> for CtmTemporalBoundaryGenItem
impl<'de> Deserialize<'de> for CtmTemporalBoundaryGenItem
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<&CtmTemporalBoundaryGenItem> for CtmTemporalBoundaryGenItem
impl From<&CtmTemporalBoundaryGenItem> for CtmTemporalBoundaryGenItem
Source§fn from(value: &CtmTemporalBoundaryGenItem) -> Self
fn from(value: &CtmTemporalBoundaryGenItem) -> Self
Converts to this type from the input type.
Source§impl From<CtmTemporalBoundaryGenItem> for CtmTemporalBoundaryGenItem
impl From<CtmTemporalBoundaryGenItem> for CtmTemporalBoundaryGenItem
Source§fn from(value: CtmTemporalBoundaryGenItem) -> Self
fn from(value: CtmTemporalBoundaryGenItem) -> Self
Converts to this type from the input type.
Source§impl TryFrom<CtmTemporalBoundaryGenItem> for CtmTemporalBoundaryGenItem
impl TryFrom<CtmTemporalBoundaryGenItem> for CtmTemporalBoundaryGenItem
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CtmTemporalBoundaryGenItem) -> Result<Self, ConversionError>
fn try_from(value: CtmTemporalBoundaryGenItem) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CtmTemporalBoundaryGenItem
impl RefUnwindSafe for CtmTemporalBoundaryGenItem
impl Send for CtmTemporalBoundaryGenItem
impl Sync for CtmTemporalBoundaryGenItem
impl Unpin for CtmTemporalBoundaryGenItem
impl UnwindSafe for CtmTemporalBoundaryGenItem
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)