pub struct EventMessage {
pub event_id: String,
pub name: String,
pub data: Value,
pub attachments: Vec<FileAttachment>,
pub metadata: Value,
}Expand description
Server-originated event delivered to a registered client event handler.
Fields§
§event_id: StringEvent correlation id.
name: StringEvent name.
data: ValueRaw JSON event data.
attachments: Vec<FileAttachment>Attachments sent with the event.
metadata: ValueRaw metadata payload.
Trait Implementations§
Source§impl Clone for EventMessage
impl Clone for EventMessage
Source§fn clone(&self) -> EventMessage
fn clone(&self) -> EventMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EventMessage
impl RefUnwindSafe for EventMessage
impl Send for EventMessage
impl Sync for EventMessage
impl Unpin for EventMessage
impl UnsafeUnpin for EventMessage
impl UnwindSafe for EventMessage
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