Struct tracing_subscriber::fmt::format::JsonFields
source · pub struct JsonFields { /* private fields */ }
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: &'a mut dyn Write,
fields: R
) -> Result
fn format_fields<R: RecordFields>(
&self,
writer: &'a mut dyn Write,
fields: R
) -> Result
Format the provided fields
to the provided writer
, returning a result.
source§fn add_fields(&self, current: &'a mut String, fields: &Record<'_>) -> Result
fn add_fields(&self, current: &'a mut String, 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.