pub struct DeliveredEvent {
pub request_id: String,
pub version: EventVersion,
pub payload: Vec<u8>,
}Expand description
Event delivered to a subscriber. Namespace is fixed per subscription so it is omitted.
Fields§
§request_id: String§version: EventVersion§payload: Vec<u8>Implementations§
Source§impl DeliveredEvent
impl DeliveredEvent
pub fn from_stream_event( request_id: impl Into<String>, event: &StreamEvent, ) -> Self
pub fn payload_json<T: for<'de> Deserialize<'de>>(&self) -> Result<T>
Trait Implementations§
Source§impl Clone for DeliveredEvent
impl Clone for DeliveredEvent
Source§fn clone(&self) -> DeliveredEvent
fn clone(&self) -> DeliveredEvent
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 DeliveredEvent
impl Debug for DeliveredEvent
Source§impl<'de> Deserialize<'de> for DeliveredEvent
impl<'de> Deserialize<'de> for DeliveredEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DeliveredEvent
Source§impl PartialEq for DeliveredEvent
impl PartialEq for DeliveredEvent
Source§impl Serialize for DeliveredEvent
impl Serialize for DeliveredEvent
impl StructuralPartialEq for DeliveredEvent
Auto Trait Implementations§
impl Freeze for DeliveredEvent
impl RefUnwindSafe for DeliveredEvent
impl Send for DeliveredEvent
impl Sync for DeliveredEvent
impl Unpin for DeliveredEvent
impl UnsafeUnpin for DeliveredEvent
impl UnwindSafe for DeliveredEvent
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