pub struct EndpointPatch {
pub channels: Option<Option<Vec<String>>>,
pub description: Option<String>,
pub disabled: Option<bool>,
pub filter_types: Option<Option<Vec<String>>>,
pub metadata: Option<HashMap<String, String>>,
pub rate_limit: Option<Option<i32>>,
pub secret: Option<Option<String>>,
pub uid: Option<Option<String>>,
pub url: Option<String>,
pub version: Option<i32>,
}
Fields§
§channels: Option<Option<Vec<String>>>
§description: Option<String>
§disabled: Option<bool>
§filter_types: Option<Option<Vec<String>>>
§metadata: Option<HashMap<String, String>>
§rate_limit: Option<Option<i32>>
§secret: Option<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<Option<String>>
The ep’s UID
url: Option<String>
§version: Option<i32>
Implementations§
Source§impl EndpointPatch
impl EndpointPatch
pub fn new() -> EndpointPatch
Trait Implementations§
Source§impl Clone for EndpointPatch
impl Clone for EndpointPatch
Source§fn clone(&self) -> EndpointPatch
fn clone(&self) -> EndpointPatch
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 EndpointPatch
impl Debug for EndpointPatch
Source§impl Default for EndpointPatch
impl Default for EndpointPatch
Source§fn default() -> EndpointPatch
fn default() -> EndpointPatch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EndpointPatch
impl<'de> Deserialize<'de> for EndpointPatch
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 EndpointPatch
impl PartialEq for EndpointPatch
Source§impl Serialize for EndpointPatch
impl Serialize for EndpointPatch
impl StructuralPartialEq for EndpointPatch
Auto Trait Implementations§
impl Freeze for EndpointPatch
impl RefUnwindSafe for EndpointPatch
impl Send for EndpointPatch
impl Sync for EndpointPatch
impl Unpin for EndpointPatch
impl UnwindSafe for EndpointPatch
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