#[non_exhaustive]pub enum EventTrigger {
Alerting,
Delta,
Periodic,
UnknownValue(String),
}Expand description
Type of trigger for this event, e.g. exceeding a threshold value.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Alerting
Alerting.
Delta
Delta.
Periodic
Periodic.
UnknownValue(String)
A value that this version of OCPP does not define.
Produced instead of failing, so a peer’s forward-compatible extension does not
take down the connection. Reported by
Validate as
ViolationKind::UnknownEnumValue,
which the decoder turns into a PropertyConstraintViolation unless
UnknownEnumValues::Preserve is set.
Named UnknownValue because Unknown is itself a defined value of several
OCPP enumerations.
Implementations§
Trait Implementations§
Source§impl Clone for EventTrigger
impl Clone for EventTrigger
Source§fn clone(&self) -> EventTrigger
fn clone(&self) -> EventTrigger
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 EventTrigger
impl Debug for EventTrigger
Source§impl<'de> Deserialize<'de> for EventTrigger
impl<'de> Deserialize<'de> for EventTrigger
Source§fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for EventTrigger
impl Display for EventTrigger
impl Eq for EventTrigger
Source§impl FromStr for EventTrigger
impl FromStr for EventTrigger
Source§impl Hash for EventTrigger
impl Hash for EventTrigger
Source§impl Ord for EventTrigger
impl Ord for EventTrigger
Source§fn cmp(&self, other: &EventTrigger) -> Ordering
fn cmp(&self, other: &EventTrigger) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for EventTrigger
impl PartialEq for EventTrigger
Source§impl PartialOrd for EventTrigger
impl PartialOrd for EventTrigger
Source§impl Serialize for EventTrigger
impl Serialize for EventTrigger
impl StructuralPartialEq for EventTrigger
Source§impl Validate for EventTrigger
impl Validate for EventTrigger
Source§fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
Appends this value’s violations to
out, relative to path.Auto Trait Implementations§
impl Freeze for EventTrigger
impl RefUnwindSafe for EventTrigger
impl Send for EventTrigger
impl Sync for EventTrigger
impl Unpin for EventTrigger
impl UnsafeUnpin for EventTrigger
impl UnwindSafe for EventTrigger
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