pub struct SSEvents {
pub data: String,
pub event: Option<String>,
pub retry: Option<u64>,
}Expand description
Stream of Server-Sent Events (SSE) from the Inference Gateway API
Fields§
§data: String§event: Option<String>§retry: Option<u64>Trait Implementations§
Source§impl<'de> Deserialize<'de> for SSEvents
impl<'de> Deserialize<'de> for SSEvents
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 SSEvents
impl RefUnwindSafe for SSEvents
impl Send for SSEvents
impl Sync for SSEvents
impl Unpin for SSEvents
impl UnwindSafe for SSEvents
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