pub struct UpdateEndpointInput {
pub channels: Vec<String>,
pub description: Option<String>,
pub disabled: bool,
pub endpoint_id: Option<String>,
pub filter: Option<String>,
pub filter_types: Vec<String>,
pub metadata: Map<String, Value>,
pub rate_limit: Option<i64>,
pub url: Option<String>,
}Expand description
UpdateEndpointInput
JSON schema
{
"type": "object",
"properties": {
"channels": {
"description": "DTO.ENDPOINT.CHANNELS",
"type": "array",
"items": {
"type": "string"
}
},
"description": {
"description": "DTO.ENDPOINT.DESCRIPTION",
"examples": [
"Webhook description"
],
"type": "string"
},
"disabled": {
"description": "DTO.ENDPOINT.DISABLED",
"default": false,
"type": "boolean"
},
"endpointId": {
"description": "DTO.ENDPOINT.ENDPOINT_ID",
"examples": [
"123"
],
"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"
},
"rateLimit": {
"description": "DTO.ENDPOINT.RATE_LIMIT",
"examples": [
1000
],
"type": "integer",
"format": "int64"
},
"url": {
"description": "DTO.ENDPOINT.URL",
"examples": [
"https://example.com"
],
"type": "string"
}
}
}Fields§
§channels: Vec<String>DTO.ENDPOINT.CHANNELS
description: Option<String>DTO.ENDPOINT.DESCRIPTION
disabled: boolDTO.ENDPOINT.DISABLED
endpoint_id: Option<String>DTO.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<i64>DTO.ENDPOINT.RATE_LIMIT
url: Option<String>DTO.ENDPOINT.URL
Implementations§
Source§impl UpdateEndpointInput
impl UpdateEndpointInput
pub fn builder() -> UpdateEndpointInput
Trait Implementations§
Source§impl Clone for UpdateEndpointInput
impl Clone for UpdateEndpointInput
Source§fn clone(&self) -> UpdateEndpointInput
fn clone(&self) -> UpdateEndpointInput
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 UpdateEndpointInput
impl Debug for UpdateEndpointInput
Source§impl Default for UpdateEndpointInput
impl Default for UpdateEndpointInput
Source§impl<'de> Deserialize<'de> for UpdateEndpointInput
impl<'de> Deserialize<'de> for UpdateEndpointInput
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<&UpdateEndpointInput> for UpdateEndpointInput
impl From<&UpdateEndpointInput> for UpdateEndpointInput
Source§fn from(value: &UpdateEndpointInput) -> Self
fn from(value: &UpdateEndpointInput) -> Self
Converts to this type from the input type.
Source§impl From<UpdateEndpointInput> for UpdateEndpointInput
impl From<UpdateEndpointInput> for UpdateEndpointInput
Source§fn from(value: UpdateEndpointInput) -> Self
fn from(value: UpdateEndpointInput) -> Self
Converts to this type from the input type.
Source§impl Serialize for UpdateEndpointInput
impl Serialize for UpdateEndpointInput
Source§impl TryFrom<UpdateEndpointInput> for UpdateEndpointInput
impl TryFrom<UpdateEndpointInput> for UpdateEndpointInput
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: UpdateEndpointInput) -> Result<Self, ConversionError>
fn try_from(value: UpdateEndpointInput) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for UpdateEndpointInput
impl RefUnwindSafe for UpdateEndpointInput
impl Send for UpdateEndpointInput
impl Sync for UpdateEndpointInput
impl Unpin for UpdateEndpointInput
impl UnwindSafe for UpdateEndpointInput
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