pub struct StoredNotifier {
pub id: String,
pub name: String,
pub kind: NotifierKind,
pub config: NotifierConfig,
pub enabled: bool,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
A stored notifier — a named notification channel that fires alerts to Slack, Discord, a generic webhook, or SMTP when triggered.
Fields§
§id: StringUUID identifier.
name: StringDisplay name (e.g. "deploy-alerts").
kind: NotifierKindNotification channel type.
config: NotifierConfigChannel-specific configuration (webhook URL, SMTP settings, etc.).
enabled: boolWhether this notifier is active. Disabled notifiers are skipped.
created_at: DateTime<Utc>When the notifier was created.
updated_at: DateTime<Utc>When the notifier was last updated.
Implementations§
Source§impl StoredNotifier
impl StoredNotifier
Sourcepub fn new(
name: impl Into<String>,
kind: NotifierKind,
config: NotifierConfig,
) -> Self
pub fn new( name: impl Into<String>, kind: NotifierKind, config: NotifierConfig, ) -> Self
Create a new notifier record with a fresh UUID and enabled = true.
Trait Implementations§
Source§impl Clone for StoredNotifier
impl Clone for StoredNotifier
Source§fn clone(&self) -> StoredNotifier
fn clone(&self) -> StoredNotifier
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 ComposeSchema for StoredNotifier
impl ComposeSchema for StoredNotifier
Source§impl Debug for StoredNotifier
impl Debug for StoredNotifier
Source§impl<'de> Deserialize<'de> for StoredNotifier
impl<'de> Deserialize<'de> for StoredNotifier
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 Serialize for StoredNotifier
impl Serialize for StoredNotifier
Auto Trait Implementations§
impl Freeze for StoredNotifier
impl RefUnwindSafe for StoredNotifier
impl Send for StoredNotifier
impl Sync for StoredNotifier
impl Unpin for StoredNotifier
impl UnsafeUnpin for StoredNotifier
impl UnwindSafe for StoredNotifier
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