pub struct NotificationTransport {
pub pk: Uuid,
pub name: String,
pub mode: Option<NotificationTransportModeEnum>,
pub mode_verbose: String,
pub webhook_url: Option<String>,
pub webhook_mapping: Option<Option<Uuid>>,
pub send_once: Option<bool>,
}
Expand description
NotificationTransport : NotificationTransport Serializer
Fields§
§pk: Uuid
§name: String
§mode: Option<NotificationTransportModeEnum>
§mode_verbose: String
Return selected mode with a UI Label
webhook_url: Option<String>
§webhook_mapping: Option<Option<Uuid>>
§send_once: Option<bool>
Only send notification once, for example when sending a webhook into a chat channel.
Implementations§
Trait Implementations§
Source§impl Clone for NotificationTransport
impl Clone for NotificationTransport
Source§fn clone(&self) -> NotificationTransport
fn clone(&self) -> NotificationTransport
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 NotificationTransport
impl Debug for NotificationTransport
Source§impl Default for NotificationTransport
impl Default for NotificationTransport
Source§fn default() -> NotificationTransport
fn default() -> NotificationTransport
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NotificationTransport
impl<'de> Deserialize<'de> for NotificationTransport
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 NotificationTransport
impl PartialEq for NotificationTransport
Source§impl Serialize for NotificationTransport
impl Serialize for NotificationTransport
impl StructuralPartialEq for NotificationTransport
Auto Trait Implementations§
impl Freeze for NotificationTransport
impl RefUnwindSafe for NotificationTransport
impl Send for NotificationTransport
impl Sync for NotificationTransport
impl Unpin for NotificationTransport
impl UnwindSafe for NotificationTransport
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