pub struct RedfishEvent {
pub event_type: Option<String>,
pub id: Option<String>,
pub data: String,
pub body: Option<Value>,
}Expand description
A parsed SSE event from the Redfish EventService.
Fields§
§event_type: Option<String>Event type (e.g. “Event”).
id: Option<String>Event ID.
data: StringRaw data payload (JSON string).
body: Option<Value>Parsed event body, if valid JSON.
Trait Implementations§
Source§impl Clone for RedfishEvent
impl Clone for RedfishEvent
Source§fn clone(&self) -> RedfishEvent
fn clone(&self) -> RedfishEvent
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 RedfishEvent
impl Debug for RedfishEvent
Source§impl<'de> Deserialize<'de> for RedfishEvent
impl<'de> Deserialize<'de> for RedfishEvent
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 RedfishEvent
impl RefUnwindSafe for RedfishEvent
impl Send for RedfishEvent
impl Sync for RedfishEvent
impl Unpin for RedfishEvent
impl UnsafeUnpin for RedfishEvent
impl UnwindSafe for RedfishEvent
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