pub enum WebhookEvent {
Show 15 variants
BatchCancelled(WebhookBatchCancelled),
BatchCompleted(WebhookBatchCompleted),
BatchExpired(WebhookBatchExpired),
BatchFailed(WebhookBatchFailed),
EvalRunCanceled(WebhookEvalRunCanceled),
EvalRunFailed(WebhookEvalRunFailed),
EvalRunSucceeded(WebhookEvalRunSucceeded),
FineTuningJobCancelled(WebhookFineTuningJobCancelled),
FineTuningJobFailed(WebhookFineTuningJobFailed),
FineTuningJobSucceeded(WebhookFineTuningJobSucceeded),
RealtimeCallIncoming(WebhookRealtimeCallIncoming),
ResponseCancelled(WebhookResponseCancelled),
ResponseCompleted(WebhookResponseCompleted),
ResponseFailed(WebhookResponseFailed),
ResponseIncomplete(WebhookResponseIncomplete),
}Available on crate feature
webhook only.Variants§
BatchCancelled(WebhookBatchCancelled)
BatchCompleted(WebhookBatchCompleted)
BatchExpired(WebhookBatchExpired)
BatchFailed(WebhookBatchFailed)
EvalRunCanceled(WebhookEvalRunCanceled)
EvalRunFailed(WebhookEvalRunFailed)
EvalRunSucceeded(WebhookEvalRunSucceeded)
FineTuningJobCancelled(WebhookFineTuningJobCancelled)
FineTuningJobFailed(WebhookFineTuningJobFailed)
FineTuningJobSucceeded(WebhookFineTuningJobSucceeded)
RealtimeCallIncoming(WebhookRealtimeCallIncoming)
ResponseCancelled(WebhookResponseCancelled)
ResponseCompleted(WebhookResponseCompleted)
ResponseFailed(WebhookResponseFailed)
ResponseIncomplete(WebhookResponseIncomplete)
Implementations§
Source§impl WebhookEvent
impl WebhookEvent
Sourcepub fn created_at(&self) -> i64
pub fn created_at(&self) -> i64
Get the timestamp when the event was created
Trait Implementations§
Source§impl Clone for WebhookEvent
impl Clone for WebhookEvent
Source§fn clone(&self) -> WebhookEvent
fn clone(&self) -> WebhookEvent
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 WebhookEvent
impl Debug for WebhookEvent
Source§impl<'de> Deserialize<'de> for WebhookEvent
impl<'de> Deserialize<'de> for WebhookEvent
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 EventType for WebhookEvent
impl EventType for WebhookEvent
Source§fn event_type(&self) -> &'static str
fn event_type(&self) -> &'static str
Returns the event type string (e.g., “batch.cancelled”)
Source§impl PartialEq for WebhookEvent
impl PartialEq for WebhookEvent
Source§impl Serialize for WebhookEvent
impl Serialize for WebhookEvent
impl StructuralPartialEq for WebhookEvent
Auto Trait Implementations§
impl Freeze for WebhookEvent
impl RefUnwindSafe for WebhookEvent
impl Send for WebhookEvent
impl Sync for WebhookEvent
impl Unpin for WebhookEvent
impl UnwindSafe for WebhookEvent
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