[][src]Enum json_trait_rs::testing::TestingType

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

Variants

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

Trait Implementations

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

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

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

impl<'json> JsonType<'json> for TestingType[src]

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

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

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

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

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

fn is_object(&'json self) -> bool[src]

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

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

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

fn primitive_type(&'json self) -> EnumJsonType[src]

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

impl Clone for TestingType[src]

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

Performs copy-assignment from source. Read more

impl Eq for TestingType[src]

impl Default for TestingType[src]

impl PartialEq<TestingType> for TestingType[src]

impl From<()> for TestingType[src]

impl From<bool> for TestingType[src]

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

impl From<String> for TestingType[src]

impl From<i32> for TestingType[src]

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

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

impl Debug for TestingType[src]

Auto Trait Implementations

impl Send for TestingType

impl Sync for TestingType

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]