pub struct DiscordWebhookConfig {
pub webhook_url: Option<String>,
pub webhook_url_env: Option<String>,
pub username: Option<String>,
pub avatar_url: Option<String>,
pub allow_mentions: Option<bool>,
}Fields§
§webhook_url: Option<String>§webhook_url_env: Option<String>§username: Option<String>§avatar_url: Option<String>§allow_mentions: Option<bool>Trait Implementations§
Source§impl Clone for DiscordWebhookConfig
impl Clone for DiscordWebhookConfig
Source§fn clone(&self) -> DiscordWebhookConfig
fn clone(&self) -> DiscordWebhookConfig
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 DiscordWebhookConfig
impl Debug for DiscordWebhookConfig
Source§impl<'de> Deserialize<'de> for DiscordWebhookConfig
impl<'de> Deserialize<'de> for DiscordWebhookConfig
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
Auto Trait Implementations§
impl Freeze for DiscordWebhookConfig
impl RefUnwindSafe for DiscordWebhookConfig
impl Send for DiscordWebhookConfig
impl Sync for DiscordWebhookConfig
impl Unpin for DiscordWebhookConfig
impl UnsafeUnpin for DiscordWebhookConfig
impl UnwindSafe for DiscordWebhookConfig
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