pub struct OperationalWebhookEndpointIn {
pub description: Option<String>,
pub disabled: Option<bool>,
pub filter_types: Option<Vec<String>>,
pub metadata: Option<HashMap<String, String>>,
pub rate_limit: Option<i32>,
pub secret: Option<String>,
pub uid: Option<String>,
pub url: String,
}
Fields§
§description: Option<String>
§disabled: Option<bool>
§filter_types: Option<Vec<String>>
§metadata: Option<HashMap<String, String>>
§rate_limit: Option<i32>
§secret: Option<String>
The endpoint’s verification secret. Format: base64
encoded random bytes optionally prefixed with whsec_
. It is recommended to not set this and let the server generate the secret.
uid: Option<String>
Optional unique identifier for the endpoint
url: String
Implementations§
Source§impl OperationalWebhookEndpointIn
impl OperationalWebhookEndpointIn
pub fn new(url: String) -> OperationalWebhookEndpointIn
Trait Implementations§
Source§impl Clone for OperationalWebhookEndpointIn
impl Clone for OperationalWebhookEndpointIn
Source§fn clone(&self) -> OperationalWebhookEndpointIn
fn clone(&self) -> OperationalWebhookEndpointIn
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 OperationalWebhookEndpointIn
impl Debug for OperationalWebhookEndpointIn
Source§impl Default for OperationalWebhookEndpointIn
impl Default for OperationalWebhookEndpointIn
Source§fn default() -> OperationalWebhookEndpointIn
fn default() -> OperationalWebhookEndpointIn
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OperationalWebhookEndpointIn
impl<'de> Deserialize<'de> for OperationalWebhookEndpointIn
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 PartialEq for OperationalWebhookEndpointIn
impl PartialEq for OperationalWebhookEndpointIn
Source§fn eq(&self, other: &OperationalWebhookEndpointIn) -> bool
fn eq(&self, other: &OperationalWebhookEndpointIn) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for OperationalWebhookEndpointIn
Auto Trait Implementations§
impl Freeze for OperationalWebhookEndpointIn
impl RefUnwindSafe for OperationalWebhookEndpointIn
impl Send for OperationalWebhookEndpointIn
impl Sync for OperationalWebhookEndpointIn
impl Unpin for OperationalWebhookEndpointIn
impl UnwindSafe for OperationalWebhookEndpointIn
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