pub struct Webhook {
pub last_updated: Option<OffsetDateTime>,
pub owner_id: OwnerId,
pub webhook_id: WebhookId,
pub url: Url,
pub event_types: BTreeSet<WebhookEventType>,
pub hmac_token: Option<Secret>,
}Expand description
Webhook configuration
Fields§
§last_updated: Option<OffsetDateTime>Timestamp of the last time the webhook was updated
owner_id: OwnerIdUnique identifier of the owner of the image
webhook_id: WebhookIdUnique identifier of the webhook
url: UrlThe webhook url
event_types: BTreeSet<WebhookEventType>The webhook events that should be included in the
hmac_token: Option<Secret>If provided, the value will be used to generate an HMAC-SHA512 of the
payload, which will be added to the HTTP Headers as X-Freta-Digest.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Webhook
impl<'de> Deserialize<'de> for Webhook
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
Auto Trait Implementations§
impl Freeze for Webhook
impl RefUnwindSafe for Webhook
impl Send for Webhook
impl Sync for Webhook
impl Unpin for Webhook
impl UnwindSafe for Webhook
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