#[non_exhaustive]pub enum KnownRealtimeItem {
Message {
id: Option<String>,
role: RealtimeRole,
content: Vec<RealtimeContentPart>,
status: Option<RealtimeItemStatus>,
extra: Extra,
},
FunctionCall {
id: Option<String>,
call_id: Option<String>,
name: Option<String>,
arguments: Option<String>,
status: Option<RealtimeItemStatus>,
extra: Extra,
},
FunctionCallOutput {
id: Option<String>,
call_id: String,
output: String,
status: Option<RealtimeItemStatus>,
extra: Extra,
},
}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.
Message
FunctionCall
Fields
§
status: Option<RealtimeItemStatus>FunctionCallOutput
Trait Implementations§
Source§impl Clone for KnownRealtimeItem
impl Clone for KnownRealtimeItem
Source§fn clone(&self) -> KnownRealtimeItem
fn clone(&self) -> KnownRealtimeItem
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 KnownRealtimeItem
impl Debug for KnownRealtimeItem
Source§impl<'de> Deserialize<'de> for KnownRealtimeItem
impl<'de> Deserialize<'de> for KnownRealtimeItem
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 PartialEq for KnownRealtimeItem
impl PartialEq for KnownRealtimeItem
Source§impl Serialize for KnownRealtimeItem
impl Serialize for KnownRealtimeItem
impl StructuralPartialEq for KnownRealtimeItem
Auto Trait Implementations§
impl Freeze for KnownRealtimeItem
impl RefUnwindSafe for KnownRealtimeItem
impl Send for KnownRealtimeItem
impl Sync for KnownRealtimeItem
impl Unpin for KnownRealtimeItem
impl UnsafeUnpin for KnownRealtimeItem
impl UnwindSafe for KnownRealtimeItem
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