pub struct UpdateWebhookRequest {
pub channels: Vec<WebhookChannel>,
pub description: Option<String>,
pub disabled: Option<bool>,
pub endpoint_id: String,
pub filter: Option<String>,
pub filter_types: Vec<String>,
pub metadata: Map<String, Value>,
pub rate_limit: Option<i32>,
pub url: Option<String>,
}Expand description
Request to update a webhook endpoint
JSON schema
{
"description": "Request to update a webhook endpoint",
"type": "object",
"required": [
"endpointId"
],
"properties": {
"channels": {
"description": "DTO.ENDPOINT.CHANNELS",
"type": "array",
"items": {
"$ref": "#/components/schemas/WebhookChannel"
}
},
"description": {
"description": "DTO.ENDPOINT.DESCRIPTION",
"examples": [
"Webhook description"
],
"type": "string"
},
"disabled": {
"description": "DTO.ENDPOINT.DISABLED",
"examples": [
false
],
"type": "boolean"
},
"endpointId": {
"description": "DTO.ENDPOINT.ENDPOINT_ID",
"examples": [
"ep_01HT7Z4QJ7N2Q9W8P6V3K5M1X2"
],
"type": "string"
},
"filter": {
"description": "DTO.ENDPOINT.FILTER",
"type": "string"
},
"filterTypes": {
"description": "DTO.ENDPOINT.FILTER_TYPES",
"type": "array",
"items": {
"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
},
"url": {
"description": "DTO.ENDPOINT.URL",
"examples": [
"https://example.com"
],
"type": "string"
}
}
}Fields§
§channels: Vec<WebhookChannel>DTO.ENDPOINT.CHANNELS
description: Option<String>DTO.ENDPOINT.DESCRIPTION
disabled: Option<bool>DTO.ENDPOINT.DISABLED
endpoint_id: StringDTO.ENDPOINT.ENDPOINT_ID
filter: Option<String>DTO.ENDPOINT.FILTER
filter_types: Vec<String>DTO.ENDPOINT.FILTER_TYPES
metadata: Map<String, Value>DTO.ENDPOINT.METADATA
rate_limit: Option<i32>DTO.ENDPOINT.RATE_LIMIT
url: Option<String>DTO.ENDPOINT.URL
Implementations§
Source§impl UpdateWebhookRequest
impl UpdateWebhookRequest
pub fn builder() -> UpdateWebhookRequest
Trait Implementations§
Source§impl Clone for UpdateWebhookRequest
impl Clone for UpdateWebhookRequest
Source§fn clone(&self) -> UpdateWebhookRequest
fn clone(&self) -> UpdateWebhookRequest
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 UpdateWebhookRequest
impl Debug for UpdateWebhookRequest
Source§impl<'de> Deserialize<'de> for UpdateWebhookRequest
impl<'de> Deserialize<'de> for UpdateWebhookRequest
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<&UpdateWebhookRequest> for UpdateWebhookRequest
impl From<&UpdateWebhookRequest> for UpdateWebhookRequest
Source§fn from(value: &UpdateWebhookRequest) -> Self
fn from(value: &UpdateWebhookRequest) -> Self
Converts to this type from the input type.
Source§impl From<UpdateWebhookRequest> for UpdateWebhookRequest
impl From<UpdateWebhookRequest> for UpdateWebhookRequest
Source§fn from(value: UpdateWebhookRequest) -> Self
fn from(value: UpdateWebhookRequest) -> Self
Converts to this type from the input type.
Source§impl Serialize for UpdateWebhookRequest
impl Serialize for UpdateWebhookRequest
Source§impl TryFrom<UpdateWebhookRequest> for UpdateWebhookRequest
impl TryFrom<UpdateWebhookRequest> for UpdateWebhookRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: UpdateWebhookRequest) -> Result<Self, ConversionError>
fn try_from(value: UpdateWebhookRequest) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for UpdateWebhookRequest
impl RefUnwindSafe for UpdateWebhookRequest
impl Send for UpdateWebhookRequest
impl Sync for UpdateWebhookRequest
impl Unpin for UpdateWebhookRequest
impl UnsafeUnpin for UpdateWebhookRequest
impl UnwindSafe for UpdateWebhookRequest
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