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