#[non_exhaustive]pub struct ConversationItemTruncateEvent {
pub audio_end_ms: i64,
pub content_index: i64,
pub item_id: String,
pub type_: ConversationItemTruncateEventType,
pub event_id: Option<Option<String>>,
pub rest: Rest,
}Expand description
Source: openai/types/realtime/conversation_item_truncate_event.py, ConversationItemTruncateEvent.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.audio_end_ms: i64§content_index: i64§item_id: String§type_: ConversationItemTruncateEventType§event_id: Option<Option<String>>§rest: RestImplementations§
Source§impl ConversationItemTruncateEvent
impl ConversationItemTruncateEvent
Sourcepub fn builder(
audio_end_ms: i64,
content_index: i64,
item_id: String,
type_: ConversationItemTruncateEventType,
) -> ConversationItemTruncateEventBuilder
pub fn builder( audio_end_ms: i64, content_index: i64, item_id: String, type_: ConversationItemTruncateEventType, ) -> ConversationItemTruncateEventBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl DeclaredFields for ConversationItemTruncateEvent
impl DeclaredFields for ConversationItemTruncateEvent
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for ConversationItemTruncateEvent
impl<'de> Deserialize<'de> for ConversationItemTruncateEvent
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
impl StructuralPartialEq for ConversationItemTruncateEvent
Auto Trait Implementations§
impl Freeze for ConversationItemTruncateEvent
impl RefUnwindSafe for ConversationItemTruncateEvent
impl Send for ConversationItemTruncateEvent
impl Sync for ConversationItemTruncateEvent
impl Unpin for ConversationItemTruncateEvent
impl UnsafeUnpin for ConversationItemTruncateEvent
impl UnwindSafe for ConversationItemTruncateEvent
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