pub trait ToJson: Serialize {
// Provided methods
fn to_json_writer(&self, writer: impl Write, pretty: bool) -> Result<()> { ... }
fn to_json_vec(&self, pretty: bool) -> Result<Vec<u8>> { ... }
}
Expand description
Writes a STAC object to JSON bytes.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.