pub struct PatchedNotificationTransportRequest {
pub name: Option<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
PatchedNotificationTransportRequest : NotificationTransport Serializer
Fields§
§name: Option<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 PatchedNotificationTransportRequest
impl PatchedNotificationTransportRequest
Sourcepub fn new() -> PatchedNotificationTransportRequest
pub fn new() -> PatchedNotificationTransportRequest
NotificationTransport Serializer
Trait Implementations§
Source§impl Clone for PatchedNotificationTransportRequest
impl Clone for PatchedNotificationTransportRequest
Source§fn clone(&self) -> PatchedNotificationTransportRequest
fn clone(&self) -> PatchedNotificationTransportRequest
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 Default for PatchedNotificationTransportRequest
impl Default for PatchedNotificationTransportRequest
Source§fn default() -> PatchedNotificationTransportRequest
fn default() -> PatchedNotificationTransportRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatchedNotificationTransportRequest
impl<'de> Deserialize<'de> for PatchedNotificationTransportRequest
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 PatchedNotificationTransportRequest
impl PartialEq for PatchedNotificationTransportRequest
Source§fn eq(&self, other: &PatchedNotificationTransportRequest) -> bool
fn eq(&self, other: &PatchedNotificationTransportRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PatchedNotificationTransportRequest
Auto Trait Implementations§
impl Freeze for PatchedNotificationTransportRequest
impl RefUnwindSafe for PatchedNotificationTransportRequest
impl Send for PatchedNotificationTransportRequest
impl Sync for PatchedNotificationTransportRequest
impl Unpin for PatchedNotificationTransportRequest
impl UnsafeUnpin for PatchedNotificationTransportRequest
impl UnwindSafe for PatchedNotificationTransportRequest
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