pub struct EventValues {
pub event_type: String,
pub details: String,
pub data: Datum,
}Expand description
An event notification’s values, decoded.
Fields§
§event_type: StringThe event type they belong to, kebab case: out-of-range.
details: StringThe fields as text, exceeding value 101.5, flags in-alarm, ...;
empty for a type with none.
data: DatumThe values as typed data: a notification-parameters
Datum::Constructed whose text is event_type: details and whose
fields start with event_type (an enumerated), then each value by
its snake-case name.
Implementations§
Source§impl EventValues
impl EventValues
Sourcepub fn new(parameters: &NotificationParameters) -> Self
pub fn new(parameters: &NotificationParameters) -> Self
The values of one notification, every digit kept.
Sourcepub fn with_floats(parameters: &NotificationParameters, floats: Floats) -> Self
pub fn with_floats(parameters: &NotificationParameters, floats: Floats) -> Self
Self::new with floats written floats.
Sourcepub fn text(&self) -> &str
pub fn text(&self) -> &str
The text of Self::data, out-of-range: exceeding value 101.5, ....
Trait Implementations§
Source§impl Clone for EventValues
impl Clone for EventValues
Source§impl Debug for EventValues
impl Debug for EventValues
Source§impl PartialEq for EventValues
impl PartialEq for EventValues
impl StructuralPartialEq for EventValues
Auto Trait Implementations§
impl Freeze for EventValues
impl RefUnwindSafe for EventValues
impl Send for EventValues
impl Sync for EventValues
impl Unpin for EventValues
impl UnsafeUnpin for EventValues
impl UnwindSafe for EventValues
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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