pub struct CtmTemporalBoundarySwitchItem {
pub ext: Option<Value>,
pub state: Binary,
pub uid: Uid,
}Expand description
structure to hold initial state of switch variables
JSON schema
{
"description": "structure to hold initial state of switch variables",
"type": "object",
"required": [
"state",
"uid"
],
"properties": {
"ext": {
"description": "additional switch initial condition parameters currently not supported by CTM"
},
"state": {
"description": "[-] binary indicator of switch initial status; 0 => open, 1 => closed",
"$ref": "#/$defs/binary"
},
"uid": {
"description": "uid of switch this record refers to",
"$ref": "#/$defs/uid"
}
}
}Fields§
§ext: Option<Value>additional switch initial condition parameters currently not supported by CTM
state: Binary[-] binary indicator of switch initial status; 0 => open, 1 => closed
uid: Uiduid of switch this record refers to
Implementations§
Trait Implementations§
Source§impl Clone for CtmTemporalBoundarySwitchItem
impl Clone for CtmTemporalBoundarySwitchItem
Source§fn clone(&self) -> CtmTemporalBoundarySwitchItem
fn clone(&self) -> CtmTemporalBoundarySwitchItem
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 CtmTemporalBoundarySwitchItem
impl<'de> Deserialize<'de> for CtmTemporalBoundarySwitchItem
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<&CtmTemporalBoundarySwitchItem> for CtmTemporalBoundarySwitchItem
impl From<&CtmTemporalBoundarySwitchItem> for CtmTemporalBoundarySwitchItem
Source§fn from(value: &CtmTemporalBoundarySwitchItem) -> Self
fn from(value: &CtmTemporalBoundarySwitchItem) -> Self
Converts to this type from the input type.
Source§impl From<CtmTemporalBoundarySwitchItem> for CtmTemporalBoundarySwitchItem
impl From<CtmTemporalBoundarySwitchItem> for CtmTemporalBoundarySwitchItem
Source§fn from(value: CtmTemporalBoundarySwitchItem) -> Self
fn from(value: CtmTemporalBoundarySwitchItem) -> Self
Converts to this type from the input type.
Source§impl TryFrom<CtmTemporalBoundarySwitchItem> for CtmTemporalBoundarySwitchItem
impl TryFrom<CtmTemporalBoundarySwitchItem> for CtmTemporalBoundarySwitchItem
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: CtmTemporalBoundarySwitchItem,
) -> Result<Self, ConversionError>
fn try_from( value: CtmTemporalBoundarySwitchItem, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CtmTemporalBoundarySwitchItem
impl RefUnwindSafe for CtmTemporalBoundarySwitchItem
impl Send for CtmTemporalBoundarySwitchItem
impl Sync for CtmTemporalBoundarySwitchItem
impl Unpin for CtmTemporalBoundarySwitchItem
impl UnwindSafe for CtmTemporalBoundarySwitchItem
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)