pub struct NotificationRuleRequest {
pub name: String,
pub transports: Option<Vec<Uuid>>,
pub severity: Option<SeverityEnum>,
pub group: Option<Option<Uuid>>,
}
Expand description
NotificationRuleRequest : NotificationRule Serializer
Fields§
§name: 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 NotificationRuleRequest
impl NotificationRuleRequest
Sourcepub fn new(name: String) -> NotificationRuleRequest
pub fn new(name: String) -> NotificationRuleRequest
NotificationRule Serializer
Trait Implementations§
Source§impl Clone for NotificationRuleRequest
impl Clone for NotificationRuleRequest
Source§fn clone(&self) -> NotificationRuleRequest
fn clone(&self) -> NotificationRuleRequest
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 NotificationRuleRequest
impl Debug for NotificationRuleRequest
Source§impl Default for NotificationRuleRequest
impl Default for NotificationRuleRequest
Source§fn default() -> NotificationRuleRequest
fn default() -> NotificationRuleRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NotificationRuleRequest
impl<'de> Deserialize<'de> for NotificationRuleRequest
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 NotificationRuleRequest
impl PartialEq for NotificationRuleRequest
Source§impl Serialize for NotificationRuleRequest
impl Serialize for NotificationRuleRequest
impl StructuralPartialEq for NotificationRuleRequest
Auto Trait Implementations§
impl Freeze for NotificationRuleRequest
impl RefUnwindSafe for NotificationRuleRequest
impl Send for NotificationRuleRequest
impl Sync for NotificationRuleRequest
impl Unpin for NotificationRuleRequest
impl UnwindSafe for NotificationRuleRequest
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