pub struct CreateWebhookSubscriptionRequest {
pub callback_url: String,
pub data_type: ExtApiV2DataType,
pub event_type: WebhookOperation,
pub verification_token: String,
}Expand description
CreateWebhookSubscriptionRequest
JSON schema
{
"title": "CreateWebhookSubscriptionRequest",
"type": "object",
"required": [
"callback_url",
"data_type",
"event_type",
"verification_token"
],
"properties": {
"callback_url": {
"title": "Callback Url",
"type": "string"
},
"data_type": {
"$ref": "#/components/schemas/ExtApiV2DataType"
},
"event_type": {
"$ref": "#/components/schemas/WebhookOperation"
},
"verification_token": {
"title": "Verification Token",
"type": "string"
}
}
}Fields§
§callback_url: String§data_type: ExtApiV2DataType§event_type: WebhookOperation§verification_token: StringTrait Implementations§
Source§impl Clone for CreateWebhookSubscriptionRequest
impl Clone for CreateWebhookSubscriptionRequest
Source§fn clone(&self) -> CreateWebhookSubscriptionRequest
fn clone(&self) -> CreateWebhookSubscriptionRequest
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<'de> Deserialize<'de> for CreateWebhookSubscriptionRequest
impl<'de> Deserialize<'de> for CreateWebhookSubscriptionRequest
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 CreateWebhookSubscriptionRequest
impl RefUnwindSafe for CreateWebhookSubscriptionRequest
impl Send for CreateWebhookSubscriptionRequest
impl Sync for CreateWebhookSubscriptionRequest
impl Unpin for CreateWebhookSubscriptionRequest
impl UnsafeUnpin for CreateWebhookSubscriptionRequest
impl UnwindSafe for CreateWebhookSubscriptionRequest
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