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: i32Unique identifier for the resource.
name: StringA friendly name for the webhook.
status: WebhookStatusWebhook status. Options: active, paused and disabled. Default is active.
topic: StringWebhook topic.
resource: ResourceWebhook resource.
event: EventWebhook event.
hooks: Vec<String>WooCommerce action names associated with the webhook.
delivery_url: StringThe 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: NaiveDateTimeThe date the webhook was created, in the site’s timezone.
date_created_gmt: NaiveDateTimeThe 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