pub struct WebhookOptions {
pub url: String,
pub headers: Option<HashMap<String, String>>,
pub auth_token: Option<String>,
}
Expand description
Options for webhook notifications
Fields§
§url: String
URL to send webhook notifications to
headers: Option<HashMap<String, String>>
Custom headers to include in webhook requests
auth_token: Option<String>
Authentication token for the webhook
Trait Implementations§
Source§impl Clone for WebhookOptions
impl Clone for WebhookOptions
Source§fn clone(&self) -> WebhookOptions
fn clone(&self) -> WebhookOptions
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 WebhookOptions
impl Debug for WebhookOptions
Source§impl Default for WebhookOptions
impl Default for WebhookOptions
Source§fn default() -> WebhookOptions
fn default() -> WebhookOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhookOptions
impl<'de> Deserialize<'de> for WebhookOptions
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<&str> for WebhookOptions
impl From<&str> for WebhookOptions
Source§impl From<String> for WebhookOptions
impl From<String> for WebhookOptions
Auto Trait Implementations§
impl Freeze for WebhookOptions
impl RefUnwindSafe for WebhookOptions
impl Send for WebhookOptions
impl Sync for WebhookOptions
impl Unpin for WebhookOptions
impl UnwindSafe for WebhookOptions
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