pub trait EventType {
// Required method
fn event_type(&self) -> &'static str;
}Available on crate feature
_api only.Expand description
Trait for events to get their event type string.
Required Methods§
Sourcefn event_type(&self) -> &'static str
fn event_type(&self) -> &'static str
Returns the event type string (e.g., “batch.cancelled”)
Implementors§
impl EventType for AssistantStreamEvent
Available on crate feature
assistant-types only.impl EventType for CreateSpeechResponseStreamEvent
Available on crate feature
audio-types only.impl EventType for CreateTranscriptionResponseStreamEvent
Available on crate feature
audio-types only.impl EventType for ImageEditStreamEvent
Available on crate feature
image-types only.impl EventType for ImageGenStreamEvent
Available on crate feature
image-types only.impl EventType for RealtimeClientEvent
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEvent
Available on crate feature
realtime-types only.impl EventType for ResponseStreamEvent
Available on crate feature
response-types only.impl EventType for WebhookEvent
Available on crate feature
webhook-types only.impl EventType for SpeechAudioDeltaEvent
Available on crate feature
audio-types only.impl EventType for SpeechAudioDoneEvent
Available on crate feature
audio-types only.impl EventType for TranscriptionTextDeltaEvent
Available on crate feature
audio-types only.impl EventType for TranscriptionTextDoneEvent
Available on crate feature
audio-types only.impl EventType for TranscriptionTextSegmentEvent
Available on crate feature
audio-types only.impl EventType for ImageEditCompletedEvent
Available on crate feature
image-types only.impl EventType for ImageEditPartialImageEvent
Available on crate feature
image-types only.impl EventType for ImageGenCompletedEvent
Available on crate feature
image-types only.impl EventType for ImageGenPartialImageEvent
Available on crate feature
image-types only.impl EventType for RealtimeClientEventConversationItemCreate
Available on crate feature
realtime-types only.impl EventType for RealtimeClientEventConversationItemDelete
Available on crate feature
realtime-types only.impl EventType for RealtimeClientEventConversationItemRetrieve
Available on crate feature
realtime-types only.impl EventType for RealtimeClientEventConversationItemTruncate
Available on crate feature
realtime-types only.impl EventType for RealtimeClientEventInputAudioBufferAppend
Available on crate feature
realtime-types only.impl EventType for RealtimeClientEventInputAudioBufferClear
Available on crate feature
realtime-types only.impl EventType for RealtimeClientEventInputAudioBufferCommit
Available on crate feature
realtime-types only.impl EventType for RealtimeClientEventOutputAudioBufferClear
Available on crate feature
realtime-types only.impl EventType for RealtimeClientEventResponseCancel
Available on crate feature
realtime-types only.impl EventType for RealtimeClientEventResponseCreate
Available on crate feature
realtime-types only.impl EventType for RealtimeClientEventSessionUpdate
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventConversationItemAdded
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventConversationItemDeleted
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventConversationItemDone
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventConversationItemInputAudioTranscriptionCompleted
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventConversationItemInputAudioTranscriptionDelta
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventConversationItemInputAudioTranscriptionFailed
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventConversationItemInputAudioTranscriptionSegment
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventConversationItemRetrieved
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventConversationItemTruncated
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventError
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventInputAudioBufferCleared
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventInputAudioBufferCommitted
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventInputAudioBufferSpeechStarted
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventInputAudioBufferSpeechStopped
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventInputAudioBufferTimeoutTriggered
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventMCPListToolsCompleted
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventMCPListToolsFailed
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventMCPListToolsInProgress
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventOutputAudioBufferCleared
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventOutputAudioBufferStarted
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventOutputAudioBufferStopped
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventRateLimitsUpdated
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventResponseAudioDelta
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventResponseAudioDone
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventResponseAudioTranscriptDelta
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventResponseAudioTranscriptDone
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventResponseContentPartAdded
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventResponseContentPartDone
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventResponseCreated
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventResponseDone
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventResponseFunctionCallArgumentsDelta
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventResponseFunctionCallArgumentsDone
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventResponseMCPCallArgumentsDelta
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventResponseMCPCallArgumentsDone
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventResponseMCPCallCompleted
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventResponseMCPCallFailed
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventResponseMCPCallInProgress
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventResponseOutputItemAdded
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventResponseOutputItemDone
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventResponseTextDelta
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventResponseTextDone
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventSessionCreated
Available on crate feature
realtime-types only.impl EventType for RealtimeServerEventSessionUpdated
Available on crate feature
realtime-types only.impl EventType for ResponseCodeInterpreterCallCodeDeltaEvent
Available on crate feature
response-types only.impl EventType for ResponseCodeInterpreterCallCodeDoneEvent
Available on crate feature
response-types only.impl EventType for ResponseCodeInterpreterCallCompletedEvent
Available on crate feature
response-types only.impl EventType for ResponseCodeInterpreterCallInProgressEvent
Available on crate feature
response-types only.impl EventType for ResponseCodeInterpreterCallInterpretingEvent
Available on crate feature
response-types only.impl EventType for ResponseCompletedEvent
Available on crate feature
response-types only.impl EventType for ResponseContentPartAddedEvent
Available on crate feature
response-types only.impl EventType for ResponseContentPartDoneEvent
Available on crate feature
response-types only.impl EventType for ResponseCreatedEvent
Available on crate feature
response-types only.impl EventType for ResponseCustomToolCallInputDeltaEvent
Available on crate feature
response-types only.impl EventType for ResponseCustomToolCallInputDoneEvent
Available on crate feature
response-types only.impl EventType for ResponseErrorEvent
Available on crate feature
response-types only.impl EventType for ResponseFailedEvent
Available on crate feature
response-types only.impl EventType for ResponseFileSearchCallCompletedEvent
Available on crate feature
response-types only.impl EventType for ResponseFileSearchCallInProgressEvent
Available on crate feature
response-types only.impl EventType for ResponseFileSearchCallSearchingEvent
Available on crate feature
response-types only.impl EventType for ResponseFunctionCallArgumentsDeltaEvent
Available on crate feature
response-types only.impl EventType for ResponseFunctionCallArgumentsDoneEvent
Available on crate feature
response-types only.impl EventType for ResponseImageGenCallCompletedEvent
Available on crate feature
response-types only.impl EventType for ResponseImageGenCallGeneratingEvent
Available on crate feature
response-types only.impl EventType for ResponseImageGenCallInProgressEvent
Available on crate feature
response-types only.impl EventType for ResponseImageGenCallPartialImageEvent
Available on crate feature
response-types only.impl EventType for ResponseInProgressEvent
Available on crate feature
response-types only.impl EventType for ResponseIncompleteEvent
Available on crate feature
response-types only.impl EventType for ResponseMCPCallArgumentsDeltaEvent
Available on crate feature
response-types only.impl EventType for ResponseMCPCallArgumentsDoneEvent
Available on crate feature
response-types only.impl EventType for ResponseMCPCallCompletedEvent
Available on crate feature
response-types only.impl EventType for ResponseMCPCallFailedEvent
Available on crate feature
response-types only.impl EventType for ResponseMCPCallInProgressEvent
Available on crate feature
response-types only.impl EventType for ResponseMCPListToolsCompletedEvent
Available on crate feature
response-types only.impl EventType for ResponseMCPListToolsFailedEvent
Available on crate feature
response-types only.impl EventType for ResponseMCPListToolsInProgressEvent
Available on crate feature
response-types only.impl EventType for ResponseOutputItemAddedEvent
Available on crate feature
response-types only.impl EventType for ResponseOutputItemDoneEvent
Available on crate feature
response-types only.impl EventType for ResponseOutputTextAnnotationAddedEvent
Available on crate feature
response-types only.impl EventType for ResponseQueuedEvent
Available on crate feature
response-types only.impl EventType for ResponseReasoningSummaryPartAddedEvent
Available on crate feature
response-types only.impl EventType for ResponseReasoningSummaryPartDoneEvent
Available on crate feature
response-types only.impl EventType for ResponseReasoningSummaryTextDeltaEvent
Available on crate feature
response-types only.impl EventType for ResponseReasoningSummaryTextDoneEvent
Available on crate feature
response-types only.impl EventType for ResponseReasoningTextDeltaEvent
Available on crate feature
response-types only.impl EventType for ResponseReasoningTextDoneEvent
Available on crate feature
response-types only.impl EventType for ResponseRefusalDeltaEvent
Available on crate feature
response-types only.impl EventType for ResponseRefusalDoneEvent
Available on crate feature
response-types only.impl EventType for ResponseTextDeltaEvent
Available on crate feature
response-types only.impl EventType for ResponseTextDoneEvent
Available on crate feature
response-types only.impl EventType for ResponseWebSearchCallCompletedEvent
Available on crate feature
response-types only.impl EventType for ResponseWebSearchCallInProgressEvent
Available on crate feature
response-types only.impl EventType for ResponseWebSearchCallSearchingEvent
Available on crate feature
response-types only.impl EventType for WebhookBatchCancelled
Available on crate feature
webhook-types only.impl EventType for WebhookBatchCompleted
Available on crate feature
webhook-types only.impl EventType for WebhookBatchExpired
Available on crate feature
webhook-types only.impl EventType for WebhookBatchFailed
Available on crate feature
webhook-types only.impl EventType for WebhookEvalRunCanceled
Available on crate feature
webhook-types only.impl EventType for WebhookEvalRunFailed
Available on crate feature
webhook-types only.impl EventType for WebhookEvalRunSucceeded
Available on crate feature
webhook-types only.impl EventType for WebhookFineTuningJobCancelled
Available on crate feature
webhook-types only.impl EventType for WebhookFineTuningJobFailed
Available on crate feature
webhook-types only.impl EventType for WebhookFineTuningJobSucceeded
Available on crate feature
webhook-types only.impl EventType for WebhookRealtimeCallIncoming
Available on crate feature
webhook-types only.impl EventType for WebhookResponseCancelled
Available on crate feature
webhook-types only.impl EventType for WebhookResponseCompleted
Available on crate feature
webhook-types only.impl EventType for WebhookResponseFailed
Available on crate feature
webhook-types only.impl EventType for WebhookResponseIncomplete
Available on crate feature
webhook-types only.