Enum messy_json::MessyJsonInner [−][src]
pub enum MessyJsonInner { Array(MessyJsonArray), Bool(MessyJsonScalar), Number(MessyJsonNumeric), Obj(MessyJsonObject), String(MessyJsonScalar), }
Expand description
Schema of a JSON Value
This enum describes in broad strokes how a JSON should look like when deserialized.
At deserialization, this enum will ensure that the JSON Value corresponds to this schema.
Variants
Array(MessyJsonArray)
Bool(MessyJsonScalar)
Number(MessyJsonNumeric)
Obj(MessyJsonObject)
String(MessyJsonScalar)
Implementations
impl MessyJsonInner
[src]
impl MessyJsonInner
[src]Trait Implementations
impl Clone for MessyJsonInner
[src]
impl Clone for MessyJsonInner
[src]fn clone(&self) -> MessyJsonInner
[src]
fn clone(&self) -> MessyJsonInner
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for MessyJsonInner
[src]
impl Debug for MessyJsonInner
[src]impl From<&'_ MessyJsonNumeric> for MessyJsonInner
[src]
impl From<&'_ MessyJsonNumeric> for MessyJsonInner
[src]fn from(x: &MessyJsonNumeric) -> Self
[src]
fn from(x: &MessyJsonNumeric) -> Self
[src]Performs the conversion.
impl From<&'_ MessyJsonObject> for MessyJsonInner
[src]
impl From<&'_ MessyJsonObject> for MessyJsonInner
[src]fn from(x: &MessyJsonObject) -> Self
[src]
fn from(x: &MessyJsonObject) -> Self
[src]Performs the conversion.
impl From<MessyJsonArray> for MessyJsonInner
[src]
impl From<MessyJsonArray> for MessyJsonInner
[src]fn from(x: MessyJsonArray) -> Self
[src]
fn from(x: MessyJsonArray) -> Self
[src]Performs the conversion.
impl From<MessyJsonInner> for MessyJson
[src]
impl From<MessyJsonInner> for MessyJson
[src]fn from(x: MessyJsonInner) -> Self
[src]
fn from(x: MessyJsonInner) -> Self
[src]Performs the conversion.
impl From<MessyJsonNumeric> for MessyJsonInner
[src]
impl From<MessyJsonNumeric> for MessyJsonInner
[src]fn from(x: MessyJsonNumeric) -> Self
[src]
fn from(x: MessyJsonNumeric) -> Self
[src]Performs the conversion.
impl From<MessyJsonObject> for MessyJsonInner
[src]
impl From<MessyJsonObject> for MessyJsonInner
[src]fn from(x: MessyJsonObject) -> Self
[src]
fn from(x: MessyJsonObject) -> Self
[src]Performs the conversion.
impl Hash for MessyJsonInner
[src]
impl Hash for MessyJsonInner
[src]impl PartialEq<MessyJsonInner> for MessyJsonInner
[src]
impl PartialEq<MessyJsonInner> for MessyJsonInner
[src]fn eq(&self, other: &MessyJsonInner) -> bool
[src]
fn eq(&self, other: &MessyJsonInner) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &MessyJsonInner) -> bool
[src]
fn ne(&self, other: &MessyJsonInner) -> bool
[src]This method tests for !=
.
impl Eq for MessyJsonInner
[src]
impl StructuralEq for MessyJsonInner
[src]
impl StructuralPartialEq for MessyJsonInner
[src]
Auto Trait Implementations
impl RefUnwindSafe for MessyJsonInner
impl Send for MessyJsonInner
impl Sync for MessyJsonInner
impl Unpin for MessyJsonInner
impl UnwindSafe for MessyJsonInner
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more