[][src]Enum json_trait_rs::RustType

pub enum RustType {
    Null,
    Boolean(bool),
    String(String),
    Integer(i32),
    List(Vec<RustType>),
    Object(HashMap<String, RustType>),
}

Variants

NullBoolean(bool)String(String)Integer(i32)List(Vec<RustType>)Object(HashMap<String, RustType>)

Trait Implementations

impl<'json> JsonMapTrait<'json, RustType> for JsonMap<'json, RustType>[src]

fn keys(&'json self) -> Box<dyn ExactSizeIterator<Item = &str> + 'json>[src]

fn values(&'json self) -> Box<dyn ExactSizeIterator<Item = &T> + 'json>[src]

impl JsonType for RustType[src]

fn is_array(&self) -> bool[src]

fn is_boolean(&self) -> bool[src]

fn is_integer(&self) -> bool[src]

fn is_null(&self) -> bool[src]

fn is_number(&self) -> bool[src]

fn is_object<'json>(&'json self) -> bool where
    JsonMap<'json, Self>: JsonMapTrait<'json, Self>, 
[src]

fn is_string(&self) -> bool[src]

fn has_attribute(&self, attribute_name: &str) -> bool[src]

fn get<I: Index<Self>>(&self, index: I) -> Option<&Self>[src]

fn primitive_type<'json>(&'json self) -> EnumJsonType where
    JsonMap<'json, Self>: JsonMapTrait<'json, Self>, 
[src]

fn fragment<'json, R: AsRef<str>>(&'json self, fragment: R) -> Option<&Self> where
    JsonMap<'json, Self>: JsonMapTrait<'json, Self>, 
[src]

impl Eq for RustType[src]

impl PartialEq<RustType> for RustType[src]

impl Clone for RustType[src]

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

Performs copy-assignment from source. Read more

impl From<()> for RustType[src]

impl From<bool> for RustType[src]

impl<'_> From<&'_ str> for RustType[src]

impl From<String> for RustType[src]

impl From<i32> for RustType[src]

impl From<HashMap<String, RustType, RandomState>> for RustType[src]

impl From<Vec<RustType>> for RustType[src]

impl Default for RustType[src]

impl Debug for RustType[src]

Auto Trait Implementations

impl Send for RustType

impl Sync for RustType

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]