pub struct Settings {
pub enabled: bool,
pub when: When,
pub preview: Preview,
pub kind_enabled: HashMap<NotifyKind, bool>,
pub pause_until_ms: i64,
pub pause_allow_attention: bool,
pub quiet_until_ms: i64,
pub show_summary: bool,
pub external_turns: bool,
}Expand description
Resolved settings snapshot the policy reads. Built by the router from
settings.json on every step (cheap; the config watcher holds it in memory).
Fields§
§enabled: bool§when: When§preview: Preview§kind_enabled: HashMap<NotifyKind, bool>§pause_until_ms: i64notify:pause:until — epoch ms; toasts are held back until then.
pause_allow_attention: boolnotify:pause:allowattention — let Attention through while paused.
quiet_until_ms: i64End of the quiet-hours window we’re currently inside (epoch ms), or 0. Behaves like a pause, but is NOT shown as one in the tray (it isn’t something “Resume” can undo — it’s a schedule).
show_summary: boolnotify:os:summary — show the agent’s session summary line.
external_turns: boolnotify:os:turncompleted:external — also notify when a turn something
other than the user started finishes (a jekt, a service notice, a
schedule, a background task). Off: such a turn ends quietly unless it
needs the user (a question, a failure), which notifies as always.
Implementations§
Source§impl Settings
impl Settings
fn kind_on(&self, kind: NotifyKind) -> bool
Sourcefn summary_on(&self) -> bool
fn summary_on(&self) -> bool
The summary line is decoration: off with its own setting, and with preview=none like the body (rich-content spec §1.2).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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