pub struct Shout { /* private fields */ }
Expand description
Defines the Webhook Forges should send updates to Must be an address that is accessible from the remote forge
Implementations§
Source§impl Shout
impl Shout
pub const fn new( webhook: Option<OutboundWebhook>, email: Option<EmailConfig>, desktop: Option<bool>, ) -> Shout
Source§impl Shout
impl Shout
pub const fn webhook(&self) -> Option<&OutboundWebhook>
pub fn webhook_secret(&self) -> Option<SecretString>
pub const fn email(&self) -> Option<&EmailConfig>
pub const fn desktop(&self) -> Option<bool>
Trait Implementations§
Source§impl AsRef<Option<EmailConfig>> for Shout
impl AsRef<Option<EmailConfig>> for Shout
Source§fn as_ref(&self) -> &Option<EmailConfig>
fn as_ref(&self) -> &Option<EmailConfig>
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<Option<OutboundWebhook>> for Shout
impl AsRef<Option<OutboundWebhook>> for Shout
Source§fn as_ref(&self) -> &Option<OutboundWebhook>
fn as_ref(&self) -> &Option<OutboundWebhook>
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<'de> Deserialize<'de> for Shout
impl<'de> Deserialize<'de> for Shout
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<(Option<OutboundWebhook>, Option<EmailConfig>, Option<bool>)> for Shout
impl From<(Option<OutboundWebhook>, Option<EmailConfig>, Option<bool>)> for Shout
Source§fn from(
value: (Option<OutboundWebhook>, Option<EmailConfig>, Option<bool>),
) -> Self
fn from( value: (Option<OutboundWebhook>, Option<EmailConfig>, Option<bool>), ) -> Self
Converts to this type from the input type.
Source§impl Ord for Shout
impl Ord for Shout
Source§impl PartialOrd for Shout
impl PartialOrd for Shout
impl Eq for Shout
impl StructuralPartialEq for Shout
Auto Trait Implementations§
impl Freeze for Shout
impl RefUnwindSafe for Shout
impl Send for Shout
impl Sync for Shout
impl Unpin for Shout
impl UnwindSafe for Shout
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.