pub struct GlogFields { /* private fields */ }
Implementations§
Source§impl GlogFields
impl GlogFields
Sourcepub fn should_quote_strings(self, value: bool) -> Self
pub fn should_quote_strings(self, value: bool) -> Self
Sets whether or not strings are wrapped in quotes.
This is helpful for reducing line width at the cost of clarity when using strings with whitespace as fields on Spans and Events.
Sourcepub fn use_whitespace_in_field(self, value: bool) -> Self
pub fn use_whitespace_in_field(self, value: bool) -> Self
Sets whether or not whitespace is added to printed fields.
This defaults to false
.
Sourcepub fn compact(self) -> Self
pub fn compact(self) -> Self
Sets the formatter to use compact options.
Setting .compat()
will set GlogFields::use_whitespace_in_field
and GlogFields::should_quote_strings
to false.
Trait Implementations§
Source§impl Default for GlogFields
impl Default for GlogFields
Source§fn default() -> GlogFields
fn default() -> GlogFields
Returns the “default value” for a type. Read more
Source§impl<'a> MakeVisitor<Writer<'a>> for GlogFields
impl<'a> MakeVisitor<Writer<'a>> for GlogFields
Auto Trait Implementations§
impl Freeze for GlogFields
impl RefUnwindSafe for GlogFields
impl Send for GlogFields
impl Sync for GlogFields
impl Unpin for GlogFields
impl UnwindSafe for GlogFields
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