pub struct NotificationPolicy {
pub urgency: Urgency,
pub audience: Vec<Principal>,
pub format_hint: FormatHint,
}Expand description
Declares who should be informed about an intent’s resolution, at what urgency, and in what format.
AgentStateGraph does not deliver notifications directly — this is stored as part of the provenance record and emitted as a structured event.
Fields§
§urgency: UrgencyHow urgent is this notification.
audience: Vec<Principal>Principals who should be informed.
format_hint: FormatHintSuggested format for the notification.
Trait Implementations§
Source§impl Clone for NotificationPolicy
impl Clone for NotificationPolicy
Source§impl Debug for NotificationPolicy
impl Debug for NotificationPolicy
Source§impl<'de> Deserialize<'de> for NotificationPolicy
impl<'de> Deserialize<'de> for NotificationPolicy
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 NotificationPolicy
impl PartialEq for NotificationPolicy
Source§impl Serialize for NotificationPolicy
impl Serialize for NotificationPolicy
impl StructuralPartialEq for NotificationPolicy
Auto Trait Implementations§
impl Freeze for NotificationPolicy
impl RefUnwindSafe for NotificationPolicy
impl Send for NotificationPolicy
impl Sync for NotificationPolicy
impl Unpin for NotificationPolicy
impl UnsafeUnpin for NotificationPolicy
impl UnwindSafe for NotificationPolicy
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