pub struct Webhook {Show 13 fields
pub id: i32,
pub name: String,
pub status: WebhookStatus,
pub topic: String,
pub resource: Resource,
pub event: Event,
pub hooks: Vec<String>,
pub delivery_url: String,
pub secret: Option<String>,
pub date_created: NaiveDateTime,
pub date_created_gmt: NaiveDateTime,
pub date_modified: Option<NaiveDateTime>,
pub date_modified_gmt: Option<NaiveDateTime>,
}
Fields§
§id: i32
Unique identifier for the resource.
name: String
A friendly name for the webhook.
status: WebhookStatus
Webhook status. Options: active, paused and disabled. Default is active.
topic: String
Webhook topic.
resource: Resource
Webhook resource.
event: Event
Webhook event.
hooks: Vec<String>
WooCommerce action names associated with the webhook.
delivery_url: String
The URL where the webhook payload is delivered.
secret: Option<String>
Secret key used to generate a hash of the delivered webhook and provided in the request headers. This will default is a MD5 hash from the current user’s ID
date_created: NaiveDateTime
The date the webhook was created, in the site’s timezone.
date_created_gmt: NaiveDateTime
The date the webhook was created, as GMT.
date_modified: Option<NaiveDateTime>
The date the webhook was last modified, in the site’s timezone.
date_modified_gmt: Option<NaiveDateTime>
The date the webhook was last modified, as GMT.
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