pub struct WebhookAuthentication {
pub type: Option<String>,
pub token: Option<String>,
pub username: Option<String>,
pub password: Option<String>,
}Expand description
WebhookAuthentication
Fields§
§type: Option<String>§token: Option<String>Used when type = Bearer
username: Option<String>Used when type = Basic
password: Option<String>Used when type = Basic
Implementations§
Source§impl WebhookAuthentication
impl WebhookAuthentication
pub fn new() -> WebhookAuthentication
Trait Implementations§
Source§impl Clone for WebhookAuthentication
impl Clone for WebhookAuthentication
Source§fn clone(&self) -> WebhookAuthentication
fn clone(&self) -> WebhookAuthentication
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WebhookAuthentication
impl Debug for WebhookAuthentication
Source§impl Default for WebhookAuthentication
impl Default for WebhookAuthentication
Source§fn default() -> WebhookAuthentication
fn default() -> WebhookAuthentication
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhookAuthentication
impl<'de> Deserialize<'de> for WebhookAuthentication
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 WebhookAuthentication
impl PartialEq for WebhookAuthentication
Source§impl Serialize for WebhookAuthentication
impl Serialize for WebhookAuthentication
impl StructuralPartialEq for WebhookAuthentication
Auto Trait Implementations§
impl Freeze for WebhookAuthentication
impl RefUnwindSafe for WebhookAuthentication
impl Send for WebhookAuthentication
impl Sync for WebhookAuthentication
impl Unpin for WebhookAuthentication
impl UnsafeUnpin for WebhookAuthentication
impl UnwindSafe for WebhookAuthentication
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