pub enum RealtimeServerEvent {
Show 34 variants
    ConversationCreated(RealtimeServerEventConversationCreated),
    ConversationItemCreated(RealtimeServerEventConversationItemCreated),
    ConversationItemDeleted(RealtimeServerEventConversationItemDeleted),
    ConversationItemInputAudioTranscriptionCompleted(RealtimeServerEventConversationItemInputAudioTranscriptionCompleted),
    ConversationItemInputAudioTranscriptionDelta(RealtimeServerEventConversationItemInputAudioTranscriptionDelta),
    ConversationItemInputAudioTranscriptionFailed(RealtimeServerEventConversationItemInputAudioTranscriptionFailed),
    ConversationItemRetrieved(RealtimeServerEventConversationItemRetrieved),
    ConversationItemTruncated(RealtimeServerEventConversationItemTruncated),
    Error(RealtimeServerEventError),
    InputAudioBufferCleared(RealtimeServerEventInputAudioBufferCleared),
    InputAudioBufferCommitted(RealtimeServerEventInputAudioBufferCommitted),
    InputAudioBufferSpeechStarted(RealtimeServerEventInputAudioBufferSpeechStarted),
    InputAudioBufferSpeechStopped(RealtimeServerEventInputAudioBufferSpeechStopped),
    RateLimitsUpdated(RealtimeServerEventRateLimitsUpdated),
    ResponseAudioDelta(RealtimeServerEventResponseAudioDelta),
    ResponseAudioDone(RealtimeServerEventResponseAudioDone),
    ResponseAudioTranscriptDelta(RealtimeServerEventResponseAudioTranscriptDelta),
    ResponseAudioTranscriptDone(RealtimeServerEventResponseAudioTranscriptDone),
    ResponseContentPartAdded(RealtimeServerEventResponseContentPartAdded),
    ResponseContentPartDone(RealtimeServerEventResponseContentPartDone),
    ResponseCreated(RealtimeServerEventResponseCreated),
    ResponseDone(RealtimeServerEventResponseDone),
    ResponseFunctionCallArgumentsDelta(RealtimeServerEventResponseFunctionCallArgumentsDelta),
    ResponseFunctionCallArgumentsDone(RealtimeServerEventResponseFunctionCallArgumentsDone),
    ResponseOutputItemAdded(RealtimeServerEventResponseOutputItemAdded),
    ResponseOutputItemDone(RealtimeServerEventResponseOutputItemDone),
    ResponseTextDelta(RealtimeServerEventResponseTextDelta),
    ResponseTextDone(RealtimeServerEventResponseTextDone),
    SessionCreated(RealtimeServerEventSessionCreated),
    SessionUpdated(RealtimeServerEventSessionUpdated),
    TranscriptionSessionUpdated(RealtimeServerEventTranscriptionSessionUpdated),
    OutputAudioBufferStarted(RealtimeServerEventOutputAudioBufferStarted),
    OutputAudioBufferStopped(RealtimeServerEventOutputAudioBufferStopped),
    OutputAudioBufferCleared(RealtimeServerEventOutputAudioBufferCleared),
}Expand description
A realtime server event.
Variants§
ConversationCreated(RealtimeServerEventConversationCreated)
ConversationItemCreated(RealtimeServerEventConversationItemCreated)
ConversationItemDeleted(RealtimeServerEventConversationItemDeleted)
ConversationItemInputAudioTranscriptionCompleted(RealtimeServerEventConversationItemInputAudioTranscriptionCompleted)
ConversationItemInputAudioTranscriptionDelta(RealtimeServerEventConversationItemInputAudioTranscriptionDelta)
ConversationItemInputAudioTranscriptionFailed(RealtimeServerEventConversationItemInputAudioTranscriptionFailed)
ConversationItemRetrieved(RealtimeServerEventConversationItemRetrieved)
ConversationItemTruncated(RealtimeServerEventConversationItemTruncated)
Error(RealtimeServerEventError)
InputAudioBufferCleared(RealtimeServerEventInputAudioBufferCleared)
InputAudioBufferCommitted(RealtimeServerEventInputAudioBufferCommitted)
InputAudioBufferSpeechStarted(RealtimeServerEventInputAudioBufferSpeechStarted)
InputAudioBufferSpeechStopped(RealtimeServerEventInputAudioBufferSpeechStopped)
RateLimitsUpdated(RealtimeServerEventRateLimitsUpdated)
ResponseAudioDelta(RealtimeServerEventResponseAudioDelta)
ResponseAudioDone(RealtimeServerEventResponseAudioDone)
ResponseAudioTranscriptDelta(RealtimeServerEventResponseAudioTranscriptDelta)
ResponseAudioTranscriptDone(RealtimeServerEventResponseAudioTranscriptDone)
ResponseContentPartAdded(RealtimeServerEventResponseContentPartAdded)
ResponseContentPartDone(RealtimeServerEventResponseContentPartDone)
ResponseCreated(RealtimeServerEventResponseCreated)
ResponseDone(RealtimeServerEventResponseDone)
ResponseFunctionCallArgumentsDelta(RealtimeServerEventResponseFunctionCallArgumentsDelta)
ResponseFunctionCallArgumentsDone(RealtimeServerEventResponseFunctionCallArgumentsDone)
ResponseOutputItemAdded(RealtimeServerEventResponseOutputItemAdded)
ResponseOutputItemDone(RealtimeServerEventResponseOutputItemDone)
ResponseTextDelta(RealtimeServerEventResponseTextDelta)
ResponseTextDone(RealtimeServerEventResponseTextDone)
SessionCreated(RealtimeServerEventSessionCreated)
SessionUpdated(RealtimeServerEventSessionUpdated)
TranscriptionSessionUpdated(RealtimeServerEventTranscriptionSessionUpdated)
OutputAudioBufferStarted(RealtimeServerEventOutputAudioBufferStarted)
OutputAudioBufferStopped(RealtimeServerEventOutputAudioBufferStopped)
OutputAudioBufferCleared(RealtimeServerEventOutputAudioBufferCleared)
Trait Implementations§
Source§impl Clone for RealtimeServerEvent
 
impl Clone for RealtimeServerEvent
Source§fn clone(&self) -> RealtimeServerEvent
 
fn clone(&self) -> RealtimeServerEvent
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 Debug for RealtimeServerEvent
 
impl Debug for RealtimeServerEvent
Source§impl<'de> Deserialize<'de> for RealtimeServerEvent
 
impl<'de> Deserialize<'de> for RealtimeServerEvent
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 RealtimeServerEvent
 
impl PartialEq for RealtimeServerEvent
Source§impl Serialize for RealtimeServerEvent
 
impl Serialize for RealtimeServerEvent
impl StructuralPartialEq for RealtimeServerEvent
Auto Trait Implementations§
impl Freeze for RealtimeServerEvent
impl RefUnwindSafe for RealtimeServerEvent
impl Send for RealtimeServerEvent
impl Sync for RealtimeServerEvent
impl Unpin for RealtimeServerEvent
impl UnwindSafe for RealtimeServerEvent
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