pub struct SwitchSchedule {
pub base: SeasonDayTypeSchedule,
pub switch: Option<MridRef>,
}Expand description
A schedule of switch positions. If RegularTimePoint.value1 is 0, the switch is open. If 1, the switch is closed.
Fields§
§base: SeasonDayTypeSchedule§switch: Option<MridRef>A SwitchSchedule is associated with a Switch.
Implementations§
Source§impl SwitchSchedule
impl SwitchSchedule
pub fn from_block(b: &RdfBlock) -> Self
Trait Implementations§
Source§impl CimElement for SwitchSchedule
impl CimElement for SwitchSchedule
Source§impl Clone for SwitchSchedule
impl Clone for SwitchSchedule
Source§fn clone(&self) -> SwitchSchedule
fn clone(&self) -> SwitchSchedule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SwitchSchedule
impl Debug for SwitchSchedule
Source§impl Default for SwitchSchedule
impl Default for SwitchSchedule
Source§fn default() -> SwitchSchedule
fn default() -> SwitchSchedule
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SwitchSchedule
impl<'de> Deserialize<'de> for SwitchSchedule
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 SwitchSchedule
impl RefUnwindSafe for SwitchSchedule
impl Send for SwitchSchedule
impl Sync for SwitchSchedule
impl Unpin for SwitchSchedule
impl UnsafeUnpin for SwitchSchedule
impl UnwindSafe for SwitchSchedule
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