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