pub struct LogConfig {
pub category: String,
pub level: LogLevel,
pub show_headers: bool,
pub show_body: bool,
}Expand description
Configuration parsed from a log URI.
Format: log:category?level=info&showHeaders=true&showBody=true
Fields§
§category: StringLog category (the path portion of the URI).
level: LogLevelLog level. Default: Info.
show_headers: boolWhether to include headers in the log output.
show_body: boolWhether to include the body in the log output.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogConfig
impl RefUnwindSafe for LogConfig
impl Send for LogConfig
impl Sync for LogConfig
impl Unpin for LogConfig
impl UnsafeUnpin for LogConfig
impl UnwindSafe for LogConfig
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