pub struct JsonFields { /* private fields */ }
Available on crate features
fmt
and std
and json
only.Expand description
The JSON FormatFields
implementation.
Implementationsยง
Sourceยงimpl JsonFields
impl JsonFields
Sourcepub fn new() -> Self
pub fn new() -> Self
Returns a new JSON FormatFields
implementation.
Trait Implementationsยง
Sourceยงimpl Debug for JsonFields
impl Debug for JsonFields
Sourceยงimpl Default for JsonFields
impl Default for JsonFields
Sourceยงimpl<'a> FormatFields<'a> for JsonFields
impl<'a> FormatFields<'a> for JsonFields
Sourceยงfn format_fields<R: RecordFields>(
&self,
writer: Writer<'_>,
fields: R,
) -> Result
fn format_fields<R: RecordFields>( &self, writer: Writer<'_>, fields: R, ) -> Result
Format the provided fields
to the provided writer
, returning a result.
Sourceยงfn add_fields(
&self,
current: &'a mut FormattedFields<Self>,
fields: &Record<'_>,
) -> Result
fn add_fields( &self, current: &'a mut FormattedFields<Self>, fields: &Record<'_>, ) -> Result
Record additional field(s) on an existing span.
By default, this appends a space to the current set of fields if it is
non-empty, and then calls self.format_fields
. If different behavior is
required, the default implementation of this method can be overridden.
Auto Trait Implementationsยง
impl Freeze for JsonFields
impl RefUnwindSafe for JsonFields
impl Send for JsonFields
impl Sync for JsonFields
impl Unpin for JsonFields
impl UnwindSafe for JsonFields
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