pub struct WebhookSafetyAlertCreated {
pub id: String,
pub object: String,
pub created_at: u64,
pub data: WebhookSafetyAlertCreatedData,
}Available on crate feature
webhook-types only.Expand description
Sent when an approved safety alert is available for an API project.
Fields§
§id: StringThe unique ID of the webhook event.
object: StringAlways event.
created_at: u64The Unix timestamp in seconds when the event was created.
data: WebhookSafetyAlertCreatedDataTrait Implementations§
Source§impl Clone for WebhookSafetyAlertCreated
impl Clone for WebhookSafetyAlertCreated
Source§fn clone(&self) -> WebhookSafetyAlertCreated
fn clone(&self) -> WebhookSafetyAlertCreated
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WebhookSafetyAlertCreated
impl Debug for WebhookSafetyAlertCreated
Source§impl<'de> Deserialize<'de> for WebhookSafetyAlertCreated
impl<'de> Deserialize<'de> for WebhookSafetyAlertCreated
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 EventId for WebhookSafetyAlertCreated
impl EventId for WebhookSafetyAlertCreated
Source§impl EventType for WebhookSafetyAlertCreated
impl EventType for WebhookSafetyAlertCreated
Source§fn event_type(&self) -> &'static str
fn event_type(&self) -> &'static str
Available on crate feature
_api only.Returns the event type string (e.g., “batch.cancelled”)
impl StructuralPartialEq for WebhookSafetyAlertCreated
Auto Trait Implementations§
impl Freeze for WebhookSafetyAlertCreated
impl RefUnwindSafe for WebhookSafetyAlertCreated
impl Send for WebhookSafetyAlertCreated
impl Sync for WebhookSafetyAlertCreated
impl Unpin for WebhookSafetyAlertCreated
impl UnsafeUnpin for WebhookSafetyAlertCreated
impl UnwindSafe for WebhookSafetyAlertCreated
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