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": "Webhook event channels to subscribe to",
"type": "array",
"items": {
"$ref": "#/components/schemas/WebhookChannel"
}
},
"description": {
"description": "Endpoint description",
"examples": [
"Webhook description"
],
"type": "string"
},
"disabled": {
"description": "Whether the endpoint is disabled",
"examples": [
false
],
"type": "boolean"
},
"endpointId": {
"description": "Endpoint ID",
"examples": [
"ep_01HT7Z4QJ7N2Q9W8P6V3K5M1X2"
],
"type": "string"
},
"filter": {
"description": "Event filter configuration",
"type": "string"
},
"filterTypes": {
"description": "Event type filters",
"type": "array",
"items": {
"type": "string"
}
},
"metadata": {
"description": "Endpoint metadata",
"examples": [
{
"key": "value"
}
],
"type": "object",
"additionalProperties": {}
},
"rateLimit": {
"description": "Rate limit for the endpoint",
"examples": [
1000
],
"type": "integer",
"format": "int32",
"minimum": 0.0
},
"url": {
"description": "Webhook destination URL",
"examples": [
"https://example.com"
],
"type": "string"
}
}
}Fields§
§channels: Vec<WebhookChannel>Webhook event channels to subscribe to
description: Option<String>Endpoint description
disabled: Option<bool>Whether the endpoint is disabled
endpoint_id: StringEndpoint ID
filter: Option<String>Event filter configuration
filter_types: Vec<String>Event type filters
metadata: Map<String, Value>Endpoint metadata
rate_limit: Option<i32>Rate limit for the endpoint
url: Option<String>Webhook destination 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 (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 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