[−][src]Enum json_trait_rs::RustType
Variants
Null
Boolean(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 items(
&'json self
) -> Box<dyn ExactSizeIterator<Item = (&str, &RustType)> + 'json>
[src]
&'json self
) -> Box<dyn ExactSizeIterator<Item = (&str, &RustType)> + 'json>
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 as_array<'json>(
&'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>(&'json self) -> Option<JsonMap<'json, Self>> where
JsonMap<'json, Self>: JsonMapTrait<'json, Self>,
[src]
JsonMap<'json, Self>: JsonMapTrait<'json, Self>,
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(&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]
JsonMap<'json, Self>: JsonMapTrait<'json, Self>,
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]
JsonMap<'json, Self>: JsonMapTrait<'json, Self>,
fn fragment<'json, R: AsRef<str>>(&'json self, fragment: R) -> Option<&Self> where
JsonMap<'json, Self>: JsonMapTrait<'json, Self>,
[src]
JsonMap<'json, Self>: JsonMapTrait<'json, Self>,
impl Eq for RustType
[src]
impl PartialEq<RustType> for RustType
[src]
impl Clone for RustType
[src]
fn clone(&self) -> 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
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, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> 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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,