[−][src]Enum json_trait_rs::testing::TestingType
Variants
Null
Boolean(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 items(
&'json self
) -> Box<dyn ExactSizeIterator<Item = (&str, &TestingType)> + 'json>
[src]
&'json self
) -> Box<dyn ExactSizeIterator<Item = (&str, &TestingType)> + 'json>
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 as_array(
&'json self
) -> Option<Box<dyn ExactSizeIterator<Item = &Self> + 'json>>
[src]
&'json self
) -> Option<Box<dyn ExactSizeIterator<Item = &Self> + 'json>>
fn as_boolean(&self) -> Option<bool>
[src]
fn as_integer(&self) -> Option<i128>
[src]
fn as_null(&self) -> Option<()>
[src]
fn as_number(&self) -> Option<f64>
[src]
fn as_object(&'json self) -> Option<JsonMap<'json, Self>>
[src]
fn as_string(&self) -> Option<&str>
[src]
fn get_attribute<R: AsRef<str>>(&self, attribute_name: R) -> Option<&Self>
[src]
fn get_index(&self, index: usize) -> Option<&Self>
[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(&self) -> 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]
fn eq(&self, other: &TestingType) -> bool
[src]
fn ne(&self, other: &TestingType) -> bool
[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]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,