pub struct ClassifiedNotification {
pub category: NotificationCategory,
pub priority: NotificationPriority,
pub title: String,
pub body: String,
pub dedup_key: String,
}Expand description
A notification candidate produced by classify.
This carries everything the policy decided; the service layer adds the
volatile bits (unique id, creation timestamp) when materialising the
outgoing AgentEvent::Notification.
Fields§
§category: NotificationCategoryCategory the event was classified into.
priority: NotificationPriorityPriority assigned to the notification.
title: StringShort title line.
body: StringBody text.
dedup_key: StringStable key used to coalesce duplicate notifications within a window.
Trait Implementations§
Source§impl Clone for ClassifiedNotification
impl Clone for ClassifiedNotification
Source§fn clone(&self) -> ClassifiedNotification
fn clone(&self) -> ClassifiedNotification
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 ClassifiedNotification
impl Debug for ClassifiedNotification
Source§impl PartialEq for ClassifiedNotification
impl PartialEq for ClassifiedNotification
impl StructuralPartialEq for ClassifiedNotification
Auto Trait Implementations§
impl Freeze for ClassifiedNotification
impl RefUnwindSafe for ClassifiedNotification
impl Send for ClassifiedNotification
impl Sync for ClassifiedNotification
impl Unpin for ClassifiedNotification
impl UnsafeUnpin for ClassifiedNotification
impl UnwindSafe for ClassifiedNotification
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