Struct foxbox_taxonomy::values::Json [] [src]

pub struct Json(pub Value);

Representation of an object in JSON. It is often (albeit not always) possible to choose a more precise data structure for representing values send/accepted by a service. If possible, adapters should rather pick such more precise data structure.

Trait Implementations

impl Deserialize for Json

fn deserialize<__D>(deserializer: &mut __D) -> Result<Json, __D::Error> where __D: Deserializer

impl Serialize for Json

fn serialize<__S>(&self, serializer: &mut __S) -> Result<(), __S::Error> where __S: Serializer

impl Parser<Json> for Json

fn description() -> String

fn parse(_: Path, source: &mut JSON) -> Result<Self, ParseError>

fn from_str(source: &str) -> Result<T, ParseError>

fn take(path: Path, source: &mut JSON, field_name: &str) -> Result<T, ParseError>

fn take_opt(path: Path, source: &mut JSON, field_name: &str) -> Option<Result<T, ParseError>>

fn take_vec_opt(path: Path, source: &mut JSON, field_name: &str) -> Option<Result<Vec<T>, ParseError>>

fn take_vec(path: Path, source: &mut JSON, field_name: &str) -> Result<Vec<T>, ParseError>

impl ToJSON for Json

fn to_json(&self, _: &mut BinaryParts) -> JSON

impl PartialOrd for Json

fn partial_cmp(&self, _: &Self) -> Option<Ordering>

1.0.0fn lt(&self, other: &Rhs) -> bool

1.0.0fn le(&self, other: &Rhs) -> bool

1.0.0fn gt(&self, other: &Rhs) -> bool

1.0.0fn ge(&self, other: &Rhs) -> bool

Derived Implementations

impl PartialEq for Json

fn eq(&self, __arg_0: &Json) -> bool

fn ne(&self, __arg_0: &Json) -> bool

impl Clone for Json

fn clone(&self) -> Json

1.0.0fn clone_from(&mut self, source: &Self)

impl Debug for Json

fn fmt(&self, __arg_0: &mut Formatter) -> Result