pub enum NotificationLevel {
All,
Verbose,
ErrorsOnly,
None,
}Expand description
Notification level — controls which task events are broadcast.
Variants§
All
Broadcast review-active and terminal completions only: done,
in_review, blocked, failed. Intermediate transitions (new,
routed, in_progress, needs_review) are suppressed.
Verbose
Broadcast every status transition, including intermediate states.
ErrorsOnly
Only broadcast errors (blocked, failed).
None
Disable notifications entirely.
Implementations§
Source§impl NotificationLevel
impl NotificationLevel
Sourcepub fn from_config() -> Self
pub fn from_config() -> Self
Load from config key notifications.level, defaulting to all.
Sourcepub fn should_notify(&self, status: &str) -> bool
pub fn should_notify(&self, status: &str) -> bool
Whether a notification with this status should be sent.
needs_review is intentionally excluded from All and ErrorsOnly:
it’s the agent-handoff signal that always pairs with a follow-up
in_review (or blocked/failed) within seconds, so notifying on it
produces a redundant ping. The review-active states (in_review,
blocked, failed) are the ones humans actually act on.
Trait Implementations§
Source§impl Clone for NotificationLevel
impl Clone for NotificationLevel
Source§impl Debug for NotificationLevel
impl Debug for NotificationLevel
Source§impl<'de> Deserialize<'de> for NotificationLevel
impl<'de> Deserialize<'de> for NotificationLevel
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>,
impl Eq for NotificationLevel
Source§impl PartialEq for NotificationLevel
impl PartialEq for NotificationLevel
Source§impl Serialize for NotificationLevel
impl Serialize for NotificationLevel
impl StructuralPartialEq for NotificationLevel
Auto Trait Implementations§
impl Freeze for NotificationLevel
impl RefUnwindSafe for NotificationLevel
impl Send for NotificationLevel
impl Sync for NotificationLevel
impl Unpin for NotificationLevel
impl UnsafeUnpin for NotificationLevel
impl UnwindSafe for NotificationLevel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more