Trait poem_openapi::types::ToJSON
source · [−]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
Provided methods
fn to_json_string(&self) -> String
fn to_json_string(&self) -> String
Convert this value to JSON string.