pub enum EventStreamPayload {
Event(Event),
MetricReport(MetricReport),
}Expand description
SSE payload that can contain either an EventRecord or a MetricReport.
Variants§
Trait Implementations§
Source§impl Debug for EventStreamPayload
impl Debug for EventStreamPayload
Source§impl<'de> Deserialize<'de> for EventStreamPayload
impl<'de> Deserialize<'de> for EventStreamPayload
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
Auto Trait Implementations§
impl Freeze for EventStreamPayload
impl RefUnwindSafe for EventStreamPayload
impl Send for EventStreamPayload
impl Sync for EventStreamPayload
impl Unpin for EventStreamPayload
impl UnsafeUnpin for EventStreamPayload
impl UnwindSafe for EventStreamPayload
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