logo
pub trait ToJSON: Type {
    fn to_json(&self) -> Option<Value>;

    fn to_json_string(&self) -> String { ... }
}
Expand description

Represents a type that can converted to JSON value.

Required Methods

Convert this value to Value.

Provided Methods

Convert this value to JSON string.

Implementations on Foreign Types

Implementors