pub struct CreateEndpointInput {
pub channels: Vec<String>,
pub description: Option<String>,
pub disabled: bool,
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
CreateEndpointInput
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"
},
"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
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 CreateEndpointInput
impl CreateEndpointInput
pub fn builder() -> CreateEndpointInput
Trait Implementations§
Source§impl Clone for CreateEndpointInput
impl Clone for CreateEndpointInput
Source§fn clone(&self) -> CreateEndpointInput
fn clone(&self) -> CreateEndpointInput
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 CreateEndpointInput
impl Debug for CreateEndpointInput
Source§impl Default for CreateEndpointInput
impl Default for CreateEndpointInput
Source§impl<'de> Deserialize<'de> for CreateEndpointInput
impl<'de> Deserialize<'de> for CreateEndpointInput
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<&CreateEndpointInput> for CreateEndpointInput
impl From<&CreateEndpointInput> for CreateEndpointInput
Source§fn from(value: &CreateEndpointInput) -> Self
fn from(value: &CreateEndpointInput) -> Self
Converts to this type from the input type.
Source§impl From<CreateEndpointInput> for CreateEndpointInput
impl From<CreateEndpointInput> for CreateEndpointInput
Source§fn from(value: CreateEndpointInput) -> Self
fn from(value: CreateEndpointInput) -> Self
Converts to this type from the input type.
Source§impl Serialize for CreateEndpointInput
impl Serialize for CreateEndpointInput
Source§impl TryFrom<CreateEndpointInput> for CreateEndpointInput
impl TryFrom<CreateEndpointInput> for CreateEndpointInput
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: CreateEndpointInput) -> Result<Self, ConversionError>
fn try_from(value: CreateEndpointInput) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CreateEndpointInput
impl RefUnwindSafe for CreateEndpointInput
impl Send for CreateEndpointInput
impl Sync for CreateEndpointInput
impl Unpin for CreateEndpointInput
impl UnwindSafe for CreateEndpointInput
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