#[non_exhaustive]pub struct EventParts {
pub event_type: EventType,
pub data: Bytes,
pub tags: Tags,
pub metadata: Option<Bytes>,
}Expand description
The owned pieces of an Event, from Event::into_parts.
#[non_exhaustive], so a later part is additive: downstream destructures
with .. or reads fields by name.
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.event_type: EventTypeThe event’s type.
data: BytesThe opaque payload.
The tags the writer attached.
metadata: Option<Bytes>The opaque client metadata, if any.
Trait Implementations§
Source§impl Clone for EventParts
impl Clone for EventParts
Source§impl Debug for EventParts
impl Debug for EventParts
impl Eq for EventParts
Source§impl PartialEq for EventParts
impl PartialEq for EventParts
impl StructuralPartialEq for EventParts
Auto Trait Implementations§
impl !Freeze for EventParts
impl RefUnwindSafe for EventParts
impl Send for EventParts
impl Sync for EventParts
impl Unpin for EventParts
impl UnsafeUnpin for EventParts
impl UnwindSafe for EventParts
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