#[non_exhaustive]pub enum RealtimeItem {
Known(KnownRealtimeItem),
Unknown(UnknownRealtimeItem),
}Expand description
Conversation item as it appears in realtime events. Unknown item types
(e.g. future MCP items) round-trip through UnknownRealtimeItem.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Known(KnownRealtimeItem)
Unknown(UnknownRealtimeItem)
Trait Implementations§
Source§impl Clone for RealtimeItem
impl Clone for RealtimeItem
Source§fn clone(&self) -> RealtimeItem
fn clone(&self) -> RealtimeItem
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 RealtimeItem
impl Debug for RealtimeItem
Source§impl<'de> Deserialize<'de> for RealtimeItem
impl<'de> Deserialize<'de> for RealtimeItem
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 RealtimeItem
impl PartialEq for RealtimeItem
Source§impl Serialize for RealtimeItem
impl Serialize for RealtimeItem
impl StructuralPartialEq for RealtimeItem
Auto Trait Implementations§
impl Freeze for RealtimeItem
impl RefUnwindSafe for RealtimeItem
impl Send for RealtimeItem
impl Sync for RealtimeItem
impl Unpin for RealtimeItem
impl UnsafeUnpin for RealtimeItem
impl UnwindSafe for RealtimeItem
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