Trait loro_internal::ToJson

source ·
pub trait ToJson {
    // Required methods
    fn to_json_value(&self) -> Value;
    fn from_json(s: &str) -> Self;

    // Provided methods
    fn to_json(&self) -> String { ... }
    fn to_json_pretty(&self) -> String { ... }
}

Required Methods§

source

fn to_json_value(&self) -> Value

source

fn from_json(s: &str) -> Self

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§