ser

Function ser 

Source
pub fn ser<T>(object: &T) -> Serializable<'_, T>
where T: Serialize,
Expand description

Wrap an object that implements Serialize into another object that implements Display. When used display in this object it shows its json representation. It is used to display complex objects using tracing.

tracing::debug!(target: “diagnostic”, value=%ser(&object));