pub enum StreamEvent {
Start(StreamStartEvent),
Delta(StreamDeltaEvent),
End(StreamEndEvent),
Error(StreamErrorEvent),
}Expand description
vocabularies.md § StreamEventType.
Variants§
Implementations§
Trait Implementations§
Source§impl Canonical for StreamEvent
impl Canonical for StreamEvent
Source§fn from_json(value: &Value) -> Result<Self, ValidationError>
fn from_json(value: &Value) -> Result<Self, ValidationError>
Read the canonical form leniently, then validate (INV-046).
Source§fn from_json_str(text: &str) -> Result<Self, ValidationError>
fn from_json_str(text: &str) -> Result<Self, ValidationError>
from_json on a JSON text.Source§fn to_json_string(&self) -> String
fn to_json_string(&self) -> String
to_json as compact JSON text.Source§impl Clone for StreamEvent
impl Clone for StreamEvent
Source§impl Debug for StreamEvent
impl Debug for StreamEvent
Source§impl<'de> Deserialize<'de> for StreamEvent
impl<'de> Deserialize<'de> for StreamEvent
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StreamEvent
impl PartialEq for StreamEvent
Source§impl Serialize for StreamEvent
impl Serialize for StreamEvent
impl StructuralPartialEq for StreamEvent
Auto Trait Implementations§
impl Freeze for StreamEvent
impl RefUnwindSafe for StreamEvent
impl Send for StreamEvent
impl Sync for StreamEvent
impl Unpin for StreamEvent
impl UnsafeUnpin for StreamEvent
impl UnwindSafe for StreamEvent
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