#[non_exhaustive]pub enum WebhookEvent {
AlertTriggered(AlertTriggeredWebhookEvent),
RecognitionCreated(RecognitionCreatedWebhookEvent),
Test(TestWebhookEvent),
Unknown(UnknownWebhookEvent),
}Expand description
A webhook Alpr.sh sent, verified: one variant a kind of payload, told
apart by WebhookEvent::event_name where a payload carries several
events, or WebhookEvent::Unknown for an event this SDK does not know
yet.
The body’s id is the id of the reading or alert, not of the delivery:
deduplicate deliveries by the X-Alprsh-Delivery-Id header.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AlertTriggered(AlertTriggeredWebhookEvent)
alert.triggered.
RecognitionCreated(RecognitionCreatedWebhookEvent)
recognition.created.
Test(TestWebhookEvent)
webhook.test.
Unknown(UnknownWebhookEvent)
An event this SDK does not know yet.
Implementations§
Source§impl WebhookEvent
impl WebhookEvent
Trait Implementations§
Source§impl Clone for WebhookEvent
impl Clone for WebhookEvent
Source§impl Debug for WebhookEvent
impl Debug for WebhookEvent
Source§impl PartialEq for WebhookEvent
impl PartialEq 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 UnsafeUnpin 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