pub struct EventReport { /* private fields */ }
Expand description
Represents a MAP-Event-Report object as defined in MAP v1.4.2 section 3.1.7. The object contains one event element which contains attributes that describes the event.
Implementations§
Source§impl EventReport
impl EventReport
Sourcepub fn v1_0(attrs: Vec<EventAttribute>) -> Result<Self, Error>
pub fn v1_0(attrs: Vec<EventAttribute>) -> Result<Self, Error>
Creates a new v1.0 message.
Sourcepub fn v1_1(attrs: Vec<EventAttribute>) -> Result<Self, Error>
pub fn v1_1(attrs: Vec<EventAttribute>) -> Result<Self, Error>
Creates a new v1.1 message.
pub fn version(&self) -> EventReportVersion
Trait Implementations§
Source§impl Builder for EventReport
impl Builder for EventReport
Source§impl Debug for EventReport
impl Debug for EventReport
Source§impl Parser for EventReport
impl Parser for EventReport
Source§impl PartialEq for EventReport
impl PartialEq for EventReport
Source§impl TryFrom<&EventReport> for Notification
impl TryFrom<&EventReport> for Notification
Source§impl TryFrom<(XmlEvent, EventReportVersion)> for EventReport
impl TryFrom<(XmlEvent, EventReportVersion)> for EventReport
impl StructuralPartialEq for EventReport
Auto Trait Implementations§
impl Freeze for EventReport
impl RefUnwindSafe for EventReport
impl Send for EventReport
impl Sync for EventReport
impl Unpin for EventReport
impl UnwindSafe for EventReport
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