pub trait Satn: Serialize {
    // Provided methods
    fn fmt(&self, f: &mut Formatter<'_>) -> Result { ... }
    fn fmt_psql(&self, f: &mut Formatter<'_>) -> Result { ... }
    fn to_satn(&self) -> String { ... }
    fn to_satn_pretty(&self) -> String { ... }
}
Expand description

An extension trait for Serialize providing formatting methods.

Provided Methods§

source

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the SATN data format into the formatter f.

source

fn fmt_psql(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the postgres SATN data format into the formatter f.

source

fn to_satn(&self) -> String

Formats the value using the SATN data format into the returned String.

source

fn to_satn_pretty(&self) -> String

Pretty prints the value using the SATN data format into the returned String.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: Serialize + ?Sized> Satn for T