pub struct Envelope<S, K> {
pub id: String,
pub subject: S,
pub kind: K,
pub body: Bytes,
}Expand description
One rendered event, immutable from here on.
Fields§
§id: StringStable across every retry of this occurrence.
subject: SWhat delivery orders by.
kind: K§body: BytesTrait Implementations§
impl<S: Eq, K: Eq> Eq for Envelope<S, K>
impl<S: PartialEq, K: PartialEq> StructuralPartialEq for Envelope<S, K>
Auto Trait Implementations§
impl<S, K> !Freeze for Envelope<S, K>
impl<S, K> Forget for Envelope<S, K>
impl<S, K> Move for Envelope<S, K>
impl<S, K> RefUnwindSafe for Envelope<S, K>where
S: RefUnwindSafe,
K: RefUnwindSafe,
impl<S, K> Send for Envelope<S, K>
impl<S, K> Sync for Envelope<S, K>
impl<S, K> Unpin for Envelope<S, K>
impl<S, K> UnsafeUnpin for Envelope<S, K>where
S: UnsafeUnpin,
K: UnsafeUnpin,
impl<S, K> UnwindSafe for Envelope<S, K>where
S: UnwindSafe,
K: UnwindSafe,
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