pub struct WebhookEndpoint {
pub channels: Vec<WebhookChannel>,
pub created_at: Option<String>,
pub description: Option<String>,
pub disabled: Option<bool>,
pub filter: Option<String>,
pub filter_types: Vec<String>,
pub id: String,
pub metadata: Map<String, Value>,
pub rate_limit: Option<i32>,
pub updated_at: Option<String>,
pub url: String,
}Expand description
Webhook endpoint response
JSON schema
{
"description": "Webhook endpoint response",
"type": "object",
"required": [
"id",
"url"
],
"properties": {
"channels": {
"description": "DTO.ENDPOINT.CHANNELS",
"type": "array",
"items": {
"$ref": "#/components/schemas/WebhookChannel"
}
},
"createdAt": {
"description": "DTO.ENDPOINT.CREATED_AT",
"examples": [
"2021-01-01"
],
"type": "string"
},
"description": {
"description": "DTO.ENDPOINT.DESCRIPTION",
"examples": [
"Webhook description"
],
"type": "string"
},
"disabled": {
"description": "DTO.ENDPOINT.DISABLED",
"examples": [
false
],
"type": "boolean"
},
"filter": {
"description": "DTO.ENDPOINT.FILTER",
"type": "string"
},
"filterTypes": {
"description": "DTO.ENDPOINT.FILTER_TYPES",
"type": "array",
"items": {
"type": "string"
}
},
"id": {
"description": "DTO.ENDPOINT.ID",
"examples": [
"ep_01HT7Z4QJ7N2Q9W8P6V3K5M1X2"
],
"type": "string"
},
"metadata": {
"description": "DTO.ENDPOINT.METADATA",
"examples": [
{
"key": "value"
}
],
"type": "object",
"additionalProperties": {}
},
"rateLimit": {
"description": "DTO.ENDPOINT.RATE_LIMIT",
"examples": [
1000
],
"type": "integer",
"format": "int32",
"minimum": 0.0
},
"updatedAt": {
"description": "DTO.ENDPOINT.UPDATED_AT",
"examples": [
"2021-01-01"
],
"type": "string"
},
"url": {
"description": "DTO.ENDPOINT.URL",
"examples": [
"https://example.com"
],
"type": "string"
}
}
}Fields§
§channels: Vec<WebhookChannel>DTO.ENDPOINT.CHANNELS
created_at: Option<String>DTO.ENDPOINT.CREATED_AT
description: Option<String>DTO.ENDPOINT.DESCRIPTION
disabled: Option<bool>DTO.ENDPOINT.DISABLED
filter: Option<String>DTO.ENDPOINT.FILTER
filter_types: Vec<String>DTO.ENDPOINT.FILTER_TYPES
id: StringDTO.ENDPOINT.ID
metadata: Map<String, Value>DTO.ENDPOINT.METADATA
rate_limit: Option<i32>DTO.ENDPOINT.RATE_LIMIT
updated_at: Option<String>DTO.ENDPOINT.UPDATED_AT
url: StringDTO.ENDPOINT.URL
Implementations§
Source§impl WebhookEndpoint
impl WebhookEndpoint
pub fn builder() -> WebhookEndpoint
Trait Implementations§
Source§impl Clone for WebhookEndpoint
impl Clone for WebhookEndpoint
Source§fn clone(&self) -> WebhookEndpoint
fn clone(&self) -> WebhookEndpoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WebhookEndpoint
impl Debug for WebhookEndpoint
Source§impl<'de> Deserialize<'de> for WebhookEndpoint
impl<'de> Deserialize<'de> for WebhookEndpoint
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
Source§impl From<&WebhookEndpoint> for WebhookEndpoint
impl From<&WebhookEndpoint> for WebhookEndpoint
Source§fn from(value: &WebhookEndpoint) -> Self
fn from(value: &WebhookEndpoint) -> Self
Converts to this type from the input type.
Source§impl From<WebhookEndpoint> for WebhookEndpoint
impl From<WebhookEndpoint> for WebhookEndpoint
Source§fn from(value: WebhookEndpoint) -> Self
fn from(value: WebhookEndpoint) -> Self
Converts to this type from the input type.
Source§impl Serialize for WebhookEndpoint
impl Serialize for WebhookEndpoint
Source§impl TryFrom<WebhookEndpoint> for WebhookEndpoint
impl TryFrom<WebhookEndpoint> for WebhookEndpoint
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: WebhookEndpoint) -> Result<Self, ConversionError>
fn try_from(value: WebhookEndpoint) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for WebhookEndpoint
impl RefUnwindSafe for WebhookEndpoint
impl Send for WebhookEndpoint
impl Sync for WebhookEndpoint
impl Unpin for WebhookEndpoint
impl UnsafeUnpin for WebhookEndpoint
impl UnwindSafe for WebhookEndpoint
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