pub struct Settings {
pub vocabulary: Vocabulary,
pub retention_days: u32,
pub opt_out_command: String,
pub status_command: String,
}Expand description
The builder’s settings, cloned into the router state.
Fields§
§vocabulary: VocabularyThe event names and module names the collector will count. Both lists default to empty, which rejects every batch naming an event or a module — fail closed, on purpose (issue #413).
retention_days: u32Retention for both tables, in days; the scheduled purge deletes buckets older than this (default 180).
opt_out_command: StringThe one-line command that turns reporting off, as a client prints it.
status_command: StringThe one-line command that prints the would-be payload, as a client prints it.
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
Mutably borrows from an owned value. Read more