#[non_exhaustive]pub struct DerControl {
pub id: String,
pub kind: DERControl,
pub default: bool,
pub superseded: bool,
pub setting: Setting,
/* private fields */
}Expand description
One DER control as a station reported it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringThe control’s id (controlId of the SetDERControlRequest that installed it).
kind: DERControlThe control type.
default: boolA default control, rather than a scheduled one. EnterService and Gradients exist only
as defaults (R04.FR.14).
superseded: boolSuperseded by a control of higher priority: never executed (R04.FR.09).
setting: SettingThe setting.
Implementations§
Source§impl DerControl
impl DerControl
Sourcepub fn is_active_at(&self, at: DateTime) -> bool
pub fn is_active_at(&self, at: DateTime) -> bool
Whether at lies inside the control’s window — always for a default, from startTime
until startTime + duration for a scheduled one. Says nothing about superseding or
priority; see DerControls::effective_at.
Trait Implementations§
Source§impl Clone for DerControl
impl Clone for DerControl
Source§impl Debug for DerControl
impl Debug for DerControl
Source§impl PartialEq for DerControl
impl PartialEq for DerControl
impl StructuralPartialEq for DerControl
Auto Trait Implementations§
impl Forget for DerControl
impl Freeze for DerControl
impl Move for DerControl
impl RefUnwindSafe for DerControl
impl Send for DerControl
impl Sync for DerControl
impl Unpin for DerControl
impl UnsafeUnpin for DerControl
impl UnwindSafe for DerControl
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