Struct axum_util::logger::LoggerConfig
source · pub struct LoggerConfig {
pub log_level_filter: Arc<dyn Fn(&str) -> Level + Send + Sync>,
pub honor_xff: bool,
pub metric_name: String,
}Fields§
§log_level_filter: Arc<dyn Fn(&str) -> Level + Send + Sync>§honor_xff: bool§metric_name: StringTrait Implementations§
source§impl Clone for LoggerConfig
impl Clone for LoggerConfig
source§fn clone(&self) -> LoggerConfig
fn clone(&self) -> LoggerConfig
Returns a copy 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 moreAuto Trait Implementations§
impl !RefUnwindSafe for LoggerConfig
impl Send for LoggerConfig
impl Sync for LoggerConfig
impl Unpin for LoggerConfig
impl !UnwindSafe for LoggerConfig
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