pub struct HandlerConfig {
pub verbose_logging: bool,
pub enable_metrics: bool,
}Expand description
Handler configuration (supports merging)
Used to configure handler behavior, such as metrics integration, log level, etc.
Fields§
§verbose_logging: boolWhether to enable verbose logging
enable_metrics: boolWhether to record metrics
Implementations§
Source§impl HandlerConfig
impl HandlerConfig
Sourcepub fn with_verbose_logging(self) -> Self
pub fn with_verbose_logging(self) -> Self
Enable verbose logging
Sourcepub fn with_metrics(self) -> Self
pub fn with_metrics(self) -> Self
Enable metrics
Trait Implementations§
Source§impl Clone for HandlerConfig
impl Clone for HandlerConfig
Source§fn clone(&self) -> HandlerConfig
fn clone(&self) -> HandlerConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 HandlerConfig
impl Debug for HandlerConfig
Source§impl Default for HandlerConfig
impl Default for HandlerConfig
Source§fn default() -> HandlerConfig
fn default() -> HandlerConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HandlerConfig
impl RefUnwindSafe for HandlerConfig
impl Send for HandlerConfig
impl Sync for HandlerConfig
impl Unpin for HandlerConfig
impl UnsafeUnpin for HandlerConfig
impl UnwindSafe for HandlerConfig
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