pub struct RealtimeClientEventConversationItemTruncate {
pub event_id: Option<String>,
pub item_id: String,
pub content_index: u32,
pub audio_end_ms: u32,
}Available on crate feature
realtime only.Fields§
§event_id: Option<String>Optional client-generated ID used to identify this event.
item_id: StringThe ID of the assistant message item to truncate. Only assistant message items can be truncated.
content_index: u32The index of the content part to truncate. Set this to 0.
audio_end_ms: u32Inclusive 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.
Trait Implementations§
Source§impl Clone for RealtimeClientEventConversationItemTruncate
impl Clone for RealtimeClientEventConversationItemTruncate
Source§fn clone(&self) -> RealtimeClientEventConversationItemTruncate
fn clone(&self) -> RealtimeClientEventConversationItemTruncate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for RealtimeClientEventConversationItemTruncate
impl Default for RealtimeClientEventConversationItemTruncate
Source§fn default() -> RealtimeClientEventConversationItemTruncate
fn default() -> RealtimeClientEventConversationItemTruncate
Returns the “default value” for a type. Read more
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
Source§impl From<RealtimeClientEventConversationItemTruncate> for Message
impl From<RealtimeClientEventConversationItemTruncate> for Message
Source§fn from(value: RealtimeClientEventConversationItemTruncate) -> Self
fn from(value: RealtimeClientEventConversationItemTruncate) -> Self
Converts to this type from the input type.
Source§impl From<RealtimeClientEventConversationItemTruncate> for RealtimeClientEvent
impl From<RealtimeClientEventConversationItemTruncate> for RealtimeClientEvent
Source§fn from(value: RealtimeClientEventConversationItemTruncate) -> Self
fn from(value: RealtimeClientEventConversationItemTruncate) -> Self
Converts to this type from the input type.
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