pub struct PatchedNotificationRuleRequest {
pub name: Option<String>,
pub transports: Option<Vec<Uuid>>,
pub severity: Option<SeverityEnum>,
pub group: Option<Option<Uuid>>,
}
Expand description
PatchedNotificationRuleRequest : NotificationRule Serializer
Fields§
§name: Option<String>
§transports: Option<Vec<Uuid>>
Select which transports should be used to notify the user. If none are selected, the notification will only be shown in the authentik UI.
severity: Option<SeverityEnum>
Controls which severity level the created notifications will have. * notice
- Notice * warning
- Warning * alert
- Alert
group: Option<Option<Uuid>>
Define which group of users this notification should be sent and shown to. If left empty, Notification won’t ben sent.
Implementations§
Source§impl PatchedNotificationRuleRequest
impl PatchedNotificationRuleRequest
Sourcepub fn new() -> PatchedNotificationRuleRequest
pub fn new() -> PatchedNotificationRuleRequest
NotificationRule Serializer
Trait Implementations§
Source§impl Clone for PatchedNotificationRuleRequest
impl Clone for PatchedNotificationRuleRequest
Source§fn clone(&self) -> PatchedNotificationRuleRequest
fn clone(&self) -> PatchedNotificationRuleRequest
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 PatchedNotificationRuleRequest
impl Default for PatchedNotificationRuleRequest
Source§fn default() -> PatchedNotificationRuleRequest
fn default() -> PatchedNotificationRuleRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatchedNotificationRuleRequest
impl<'de> Deserialize<'de> for PatchedNotificationRuleRequest
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 PatchedNotificationRuleRequest
impl PartialEq for PatchedNotificationRuleRequest
Source§fn eq(&self, other: &PatchedNotificationRuleRequest) -> bool
fn eq(&self, other: &PatchedNotificationRuleRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for PatchedNotificationRuleRequest
Auto Trait Implementations§
impl Freeze for PatchedNotificationRuleRequest
impl RefUnwindSafe for PatchedNotificationRuleRequest
impl Send for PatchedNotificationRuleRequest
impl Sync for PatchedNotificationRuleRequest
impl Unpin for PatchedNotificationRuleRequest
impl UnwindSafe for PatchedNotificationRuleRequest
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