Function near_primitives::utils::ser[][src]

pub fn ser<'a, T>(object: &'a T) -> Serializable<'a, T> where
    T: Serialize

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));