pub struct SwitchingPlan {
pub mrid: String,
pub name: String,
pub purpose: Option<String>,
pub planned_start: Option<DateTime<Utc>>,
pub planned_end: Option<DateTime<Utc>>,
pub approved_date_time: Option<DateTime<Utc>>,
pub steps: Vec<SwitchingStep>,
}Expand description
An ordered sequence of switching actions for a planned outage or restoration.
Fields§
§mrid: StringUnique CIM mRID.
name: StringHuman-readable name.
purpose: Option<String>Purpose or reason for the switching plan.
planned_start: Option<DateTime<Utc>>Planned start time.
planned_end: Option<DateTime<Utc>>Planned end time.
approved_date_time: Option<DateTime<Utc>>Timestamp when the plan was approved.
steps: Vec<SwitchingStep>Ordered switching steps (sorted by sequence_number).
Trait Implementations§
Source§impl Clone for SwitchingPlan
impl Clone for SwitchingPlan
Source§fn clone(&self) -> SwitchingPlan
fn clone(&self) -> SwitchingPlan
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 SwitchingPlan
impl Debug for SwitchingPlan
Source§impl Default for SwitchingPlan
impl Default for SwitchingPlan
Source§fn default() -> SwitchingPlan
fn default() -> SwitchingPlan
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SwitchingPlan
impl<'de> Deserialize<'de> for SwitchingPlan
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 SwitchingPlan
impl RefUnwindSafe for SwitchingPlan
impl Send for SwitchingPlan
impl Sync for SwitchingPlan
impl Unpin for SwitchingPlan
impl UnsafeUnpin for SwitchingPlan
impl UnwindSafe for SwitchingPlan
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