pub struct SwitchingStep {
pub sequence_number: u32,
pub kind: Option<SwitchingStepKind>,
pub switch_mrid: Option<String>,
pub equipment_mrid: Option<String>,
pub description: Option<String>,
pub is_free_sequence: bool,
pub executed_date_time: Option<DateTime<Utc>>,
}Expand description
A single step within a switching plan.
Fields§
§sequence_number: u32Order of execution within the parent switching plan.
kind: Option<SwitchingStepKind>Action to perform (open, close, energize, etc.).
switch_mrid: Option<String>mRID of the switch device to operate (if applicable).
equipment_mrid: Option<String>mRID of the equipment being switched (if applicable).
description: Option<String>Free-text description of this step.
is_free_sequence: boolWhether this step can be executed in any order relative to siblings.
executed_date_time: Option<DateTime<Utc>>Timestamp when this step was actually executed.
Trait Implementations§
Source§impl Clone for SwitchingStep
impl Clone for SwitchingStep
Source§fn clone(&self) -> SwitchingStep
fn clone(&self) -> SwitchingStep
Returns a duplicate of the value. Read more
1.0.0 · 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 SwitchingStep
impl Debug for SwitchingStep
Source§impl Default for SwitchingStep
impl Default for SwitchingStep
Source§fn default() -> SwitchingStep
fn default() -> SwitchingStep
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SwitchingStep
impl<'de> Deserialize<'de> for SwitchingStep
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 SwitchingStep
impl RefUnwindSafe for SwitchingStep
impl Send for SwitchingStep
impl Sync for SwitchingStep
impl Unpin for SwitchingStep
impl UnsafeUnpin for SwitchingStep
impl UnwindSafe for SwitchingStep
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