pub struct NotificationTarget {
pub id: String,
pub tenant_id: String,
pub channel: NotificationTargetChannel,
pub label: String,
pub enabled: bool,
pub created_at: String,
pub last_delivered_at: Option<String>,
pub last_error: Option<String>,
pub config: Value,
}Expand description
Where outbound notifications go. Secrets never leave the server: a webhook’s signing
secret is reported only as has_signing_secret, a device token only by its last four
characters, and a Web Push endpoint only by host — the path carries a subscription
identifier.
Fields§
§id: String§tenant_id: String§channel: NotificationTargetChannel§label: StringOperator’s own label — “Slack #ops”, “iPhone 15”.
enabled: boolA disabled target is kept for audit and skipped at fan-out.
created_at: String§last_delivered_at: Option<String>Last success — the field that tells a dead webhook from a quiet one.
last_error: Option<String>§config: ValueTrait Implementations§
Source§impl Clone for NotificationTarget
impl Clone for NotificationTarget
Source§fn clone(&self) -> NotificationTarget
fn clone(&self) -> NotificationTarget
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 NotificationTarget
impl Debug for NotificationTarget
Source§impl Default for NotificationTarget
impl Default for NotificationTarget
Source§fn default() -> NotificationTarget
fn default() -> NotificationTarget
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NotificationTarget
impl<'de> Deserialize<'de> for NotificationTarget
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 NotificationTarget
impl PartialEq for NotificationTarget
Source§impl Serialize for NotificationTarget
impl Serialize for NotificationTarget
impl StructuralPartialEq for NotificationTarget
Auto Trait Implementations§
impl Freeze for NotificationTarget
impl RefUnwindSafe for NotificationTarget
impl Send for NotificationTarget
impl Sync for NotificationTarget
impl Unpin for NotificationTarget
impl UnsafeUnpin for NotificationTarget
impl UnwindSafe for NotificationTarget
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