pub struct NotificationPreferences {
pub priority_channels: Option<NotificationPreferencesPriorityChannels>,
pub type_overrides: Option<HashMap<String, Vec<NotificationChannel>>>,
pub muted_types: Option<Vec<NotificationType>>,
pub quiet_hours: Option<NotificationPreferencesQuietHours>,
pub tenant_id: String,
pub updated_at: String,
}Expand description
NotificationPreferences model.
Fields§
§priority_channels: Option<NotificationPreferencesPriorityChannels>Default channel routing keyed by severity. Server default: critical → [in_app, email]; warning/info/success → [in_app].
type_overrides: Option<HashMap<String, Vec<NotificationChannel>>>Per-event-type channel list. When present for a type it REPLACES the priority-level default for that type. Keys are NotificationType values.
muted_types: Option<Vec<NotificationType>>Event types muted for OUTBOUND delivery (email/webhook/push). The in-app bell still receives them — muting does not hide an event from the bell drawer, it only stops the outbound channels.
quiet_hours: Option<NotificationPreferencesQuietHours>Window during which non-critical messages are suppressed; critical always bypasses. Set both start_local and end_local to enable, empty disables.
tenant_id: String§updated_at: StringTrait Implementations§
Source§impl Clone for NotificationPreferences
impl Clone for NotificationPreferences
Source§fn clone(&self) -> NotificationPreferences
fn clone(&self) -> NotificationPreferences
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NotificationPreferences
impl Debug for NotificationPreferences
Source§impl Default for NotificationPreferences
impl Default for NotificationPreferences
Source§fn default() -> NotificationPreferences
fn default() -> NotificationPreferences
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NotificationPreferences
impl<'de> Deserialize<'de> for NotificationPreferences
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 NotificationPreferences
impl PartialEq for NotificationPreferences
Source§impl Serialize for NotificationPreferences
impl Serialize for NotificationPreferences
impl StructuralPartialEq for NotificationPreferences
Auto Trait Implementations§
impl Freeze for NotificationPreferences
impl RefUnwindSafe for NotificationPreferences
impl Send for NotificationPreferences
impl Sync for NotificationPreferences
impl Unpin for NotificationPreferences
impl UnsafeUnpin for NotificationPreferences
impl UnwindSafe for NotificationPreferences
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