pub enum ClickStackAlertChannelEmailType {
Webhook,
Email,
Unknown(String),
}Expand description
Inline enum for ClickStackAlertChannelEmail.type.
The spec gives both alert-channel variants the same enum: ["webhook", "email"], so #[default] sits on Email rather than on the first value:
this field discriminates the ClickStackAlertChannel union, and defaulting
it to webhook would make ClickStackAlertChannelEmail::default()
deserialize back as the webhook variant.
Variants§
Trait Implementations§
Source§impl Clone for ClickStackAlertChannelEmailType
impl Clone for ClickStackAlertChannelEmailType
Source§fn clone(&self) -> ClickStackAlertChannelEmailType
fn clone(&self) -> ClickStackAlertChannelEmailType
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 Default for ClickStackAlertChannelEmailType
impl Default for ClickStackAlertChannelEmailType
Source§fn default() -> ClickStackAlertChannelEmailType
fn default() -> ClickStackAlertChannelEmailType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClickStackAlertChannelEmailType
impl<'de> Deserialize<'de> for ClickStackAlertChannelEmailType
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
impl StructuralPartialEq for ClickStackAlertChannelEmailType
Auto Trait Implementations§
impl Freeze for ClickStackAlertChannelEmailType
impl RefUnwindSafe for ClickStackAlertChannelEmailType
impl Send for ClickStackAlertChannelEmailType
impl Sync for ClickStackAlertChannelEmailType
impl Unpin for ClickStackAlertChannelEmailType
impl UnsafeUnpin for ClickStackAlertChannelEmailType
impl UnwindSafe for ClickStackAlertChannelEmailType
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