Trait spacetimedb_sats::ser::Serialize
source · pub trait Serialize {
// Required method
fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>;
}
Expand description
A data structure that can be serialized into any data format supported by SATS.
In most cases, implementations of Serialize
may be #[derive(Serialize)]
d.
The Serialize
trait in SATS performs the same function as serde::Serialize
in serde
.
See the documentation of serde::Serialize
for more information of the data model.
Required Methods§
Object Safety§
This trait is not object safe.