pub trait JsonSerializable: 'static {
// Required method
fn into_json_value(self) -> Option<Value>;
}
Expand description
Trait declaring any type that is serializable to JSON. This includes all primitive types (bool, i32, etc.).
Required Methods§
Sourcefn into_json_value(self) -> Option<Value>
fn into_json_value(self) -> Option<Value>
Converts self into json value if its possible