pub enum CtmNetworkBusItemType {
Variant0(CtmNetworkBusItemTypeVariant0),
Variant1(TimeSeriesReference),
}Expand description
bus type for power flow calculations (PV, PQ, or slack)
JSON schema
{
"description": "bus type for power flow calculations (PV, PQ, or slack)",
"anyOf": [
{
"type": "string",
"enum": [
"PQ",
"PV",
"slack"
]
},
{
"$ref": "#/$defs/time_series_reference"
}
]
}Variants§
Variant0(CtmNetworkBusItemTypeVariant0)
Variant1(TimeSeriesReference)
Trait Implementations§
Source§impl Clone for CtmNetworkBusItemType
impl Clone for CtmNetworkBusItemType
Source§fn clone(&self) -> CtmNetworkBusItemType
fn clone(&self) -> CtmNetworkBusItemType
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 CtmNetworkBusItemType
impl Debug for CtmNetworkBusItemType
Source§impl<'de> Deserialize<'de> for CtmNetworkBusItemType
impl<'de> Deserialize<'de> for CtmNetworkBusItemType
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<&CtmNetworkBusItemType> for CtmNetworkBusItemType
impl From<&CtmNetworkBusItemType> for CtmNetworkBusItemType
Source§fn from(value: &CtmNetworkBusItemType) -> Self
fn from(value: &CtmNetworkBusItemType) -> Self
Converts to this type from the input type.
Source§impl From<CtmNetworkBusItemTypeVariant0> for CtmNetworkBusItemType
impl From<CtmNetworkBusItemTypeVariant0> for CtmNetworkBusItemType
Source§fn from(value: CtmNetworkBusItemTypeVariant0) -> Self
fn from(value: CtmNetworkBusItemTypeVariant0) -> Self
Converts to this type from the input type.
Source§impl From<TimeSeriesReference> for CtmNetworkBusItemType
impl From<TimeSeriesReference> for CtmNetworkBusItemType
Source§fn from(value: TimeSeriesReference) -> Self
fn from(value: TimeSeriesReference) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CtmNetworkBusItemType
impl RefUnwindSafe for CtmNetworkBusItemType
impl Send for CtmNetworkBusItemType
impl Sync for CtmNetworkBusItemType
impl Unpin for CtmNetworkBusItemType
impl UnwindSafe for CtmNetworkBusItemType
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)