pub struct NotificationTransportRequest {
pub name: String,
pub mode: Option<NotificationTransportModeEnum>,
pub webhook_url: Option<String>,
pub webhook_mapping_body: Option<Option<Uuid>>,
pub webhook_mapping_headers: Option<Option<Uuid>>,
pub email_subject_prefix: Option<String>,
pub email_template: Option<String>,
pub send_once: Option<bool>,
}Expand description
NotificationTransportRequest : NotificationTransport Serializer
Fields§
§name: String§mode: Option<NotificationTransportModeEnum>§webhook_url: Option<String>§webhook_mapping_body: Option<Option<Uuid>>Customize the body of the request. Mapping should return data that is JSON-serializable.
webhook_mapping_headers: Option<Option<Uuid>>Configure additional headers to be sent. Mapping should return a dictionary of key-value pairs
email_subject_prefix: Option<String>§email_template: Option<String>§send_once: Option<bool>Only send notification once, for example when sending a webhook into a chat channel.
Implementations§
Source§impl NotificationTransportRequest
impl NotificationTransportRequest
Sourcepub fn new(name: String) -> NotificationTransportRequest
pub fn new(name: String) -> NotificationTransportRequest
NotificationTransport Serializer
Trait Implementations§
Source§impl Clone for NotificationTransportRequest
impl Clone for NotificationTransportRequest
Source§fn clone(&self) -> NotificationTransportRequest
fn clone(&self) -> NotificationTransportRequest
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 NotificationTransportRequest
impl Debug for NotificationTransportRequest
Source§impl Default for NotificationTransportRequest
impl Default for NotificationTransportRequest
Source§fn default() -> NotificationTransportRequest
fn default() -> NotificationTransportRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NotificationTransportRequest
impl<'de> Deserialize<'de> for NotificationTransportRequest
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 NotificationTransportRequest
impl PartialEq for NotificationTransportRequest
Source§fn eq(&self, other: &NotificationTransportRequest) -> bool
fn eq(&self, other: &NotificationTransportRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NotificationTransportRequest
Auto Trait Implementations§
impl Freeze for NotificationTransportRequest
impl RefUnwindSafe for NotificationTransportRequest
impl Send for NotificationTransportRequest
impl Sync for NotificationTransportRequest
impl Unpin for NotificationTransportRequest
impl UnsafeUnpin for NotificationTransportRequest
impl UnwindSafe for NotificationTransportRequest
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