Trait spacetimedb_sats::satn::Satn
source · 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§
sourcefn fmt(&self, f: &mut Formatter<'_>) -> Result
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the SATN data format into the formatter f
.
sourcefn fmt_psql(&self, f: &mut Formatter<'_>) -> Result
fn fmt_psql(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the postgres SATN data format into the formatter f
.
sourcefn to_satn(&self) -> String
fn to_satn(&self) -> String
Formats the value using the SATN data format into the returned String
.
sourcefn to_satn_pretty(&self) -> String
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.