pub enum MessagesStreamEventType {
MessageStart,
ContentBlockStart,
ContentBlockDelta,
ContentBlockStop,
MessageDelta,
MessageStop,
Ping,
Error,
}Expand description
The type of the streamed event.
JSON schema
{
"description": "The type of the streamed event.",
"type": "string",
"enum": [
"message_start",
"content_block_start",
"content_block_delta",
"content_block_stop",
"message_delta",
"message_stop",
"ping",
"error"
]
}Variants§
MessageStart
ContentBlockStart
ContentBlockDelta
ContentBlockStop
MessageDelta
MessageStop
Ping
Error
Trait Implementations§
Source§impl Clone for MessagesStreamEventType
impl Clone for MessagesStreamEventType
Source§fn clone(&self) -> MessagesStreamEventType
fn clone(&self) -> MessagesStreamEventType
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 moreimpl Copy for MessagesStreamEventType
Source§impl Debug for MessagesStreamEventType
impl Debug for MessagesStreamEventType
Source§impl<'de> Deserialize<'de> for MessagesStreamEventType
impl<'de> Deserialize<'de> for MessagesStreamEventType
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
Source§impl Display for MessagesStreamEventType
impl Display for MessagesStreamEventType
impl Eq for MessagesStreamEventType
Source§impl FromStr for MessagesStreamEventType
impl FromStr for MessagesStreamEventType
Source§impl Hash for MessagesStreamEventType
impl Hash for MessagesStreamEventType
Source§impl Ord for MessagesStreamEventType
impl Ord for MessagesStreamEventType
Source§fn cmp(&self, other: &MessagesStreamEventType) -> Ordering
fn cmp(&self, other: &MessagesStreamEventType) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MessagesStreamEventType
impl PartialEq for MessagesStreamEventType
Source§impl PartialOrd for MessagesStreamEventType
impl PartialOrd for MessagesStreamEventType
Source§impl Serialize for MessagesStreamEventType
impl Serialize for MessagesStreamEventType
impl StructuralPartialEq for MessagesStreamEventType
Source§impl TryFrom<&String> for MessagesStreamEventType
impl TryFrom<&String> for MessagesStreamEventType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for MessagesStreamEventType
impl TryFrom<&str> for MessagesStreamEventType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for MessagesStreamEventType
impl TryFrom<String> for MessagesStreamEventType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for MessagesStreamEventType
impl RefUnwindSafe for MessagesStreamEventType
impl Send for MessagesStreamEventType
impl Sync for MessagesStreamEventType
impl Unpin for MessagesStreamEventType
impl UnsafeUnpin for MessagesStreamEventType
impl UnwindSafe for MessagesStreamEventType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.