pub struct WebhookSubscriptionModel {
pub callback_url: String,
pub data_type: ExtApiV2DataType,
pub event_type: WebhookOperation,
pub expiration_time: DateTime<Utc>,
pub id: String,
}Expand description
WebhookSubscriptionModel
JSON schema
{
"title": "WebhookSubscriptionModel",
"type": "object",
"required": [
"callback_url",
"data_type",
"event_type",
"expiration_time",
"id"
],
"properties": {
"callback_url": {
"title": "Callback Url",
"type": "string"
},
"data_type": {
"$ref": "#/components/schemas/ExtApiV2DataType"
},
"event_type": {
"$ref": "#/components/schemas/WebhookOperation"
},
"expiration_time": {
"title": "Expiration Time",
"type": "string",
"format": "date-time"
},
"id": {
"title": "Id",
"type": "string",
"format": "uuid4"
}
}
}Fields§
§callback_url: String§data_type: ExtApiV2DataType§event_type: WebhookOperation§expiration_time: DateTime<Utc>§id: StringTrait Implementations§
Source§impl Clone for WebhookSubscriptionModel
impl Clone for WebhookSubscriptionModel
Source§impl Debug for WebhookSubscriptionModel
impl Debug for WebhookSubscriptionModel
Source§impl<'de> Deserialize<'de> for WebhookSubscriptionModel
impl<'de> Deserialize<'de> for WebhookSubscriptionModel
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 WebhookSubscriptionModel
impl RefUnwindSafe for WebhookSubscriptionModel
impl Send for WebhookSubscriptionModel
impl Sync for WebhookSubscriptionModel
impl Unpin for WebhookSubscriptionModel
impl UnsafeUnpin for WebhookSubscriptionModel
impl UnwindSafe for WebhookSubscriptionModel
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