pub struct RealtimeClientEventConversationItemTruncate {
pub audio_end_ms: i32,
pub content_index: i32,
pub event_id: Option<String>,
pub item_id: String,
pub _type: String,
}
Fields§
§audio_end_ms: i32
Inclusive duration up to which audio is truncated, in milliseconds. If the audio_end_ms is greater than the actual audio duration, the server will respond with an error.
content_index: i32
The index of the content part to truncate. Set this to 0.
event_id: Option<String>
Optional client-generated ID used to identify this event.
item_id: String
The ID of the assistant message item to truncate. Only assistant message items can be truncated.
_type: String
The event type, must be conversation.item.truncate
.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RealtimeClientEventConversationItemTruncate
impl<'de> Deserialize<'de> for RealtimeClientEventConversationItemTruncate
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
Auto Trait Implementations§
impl Freeze for RealtimeClientEventConversationItemTruncate
impl RefUnwindSafe for RealtimeClientEventConversationItemTruncate
impl Send for RealtimeClientEventConversationItemTruncate
impl Sync for RealtimeClientEventConversationItemTruncate
impl Unpin for RealtimeClientEventConversationItemTruncate
impl UnwindSafe for RealtimeClientEventConversationItemTruncate
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