[−][src]Trait json_trait_rs::JsonType
Required methods
fn as_array<'json>(
&'json self
) -> Option<Box<dyn ExactSizeIterator<Item = &T> + 'json>>
&'json self
) -> Option<Box<dyn ExactSizeIterator<Item = &T> + 'json>>
fn as_boolean(&self) -> Option<bool>
fn as_integer(&self) -> Option<i128>
fn as_null(&self) -> Option<()>
fn as_number(&self) -> Option<f64>
fn as_object(&self) -> Option<JsonMap<T>> where
JsonMap<'json, T>: JsonMapTrait<'json, T>,
JsonMap<'json, T>: JsonMapTrait<'json, T>,
fn as_string(&self) -> Option<&str>
fn get_attribute(&self, attribute_name: &str) -> Option<&T>
fn get_index(&self, index: usize) -> Option<&T>
Provided methods
fn is_array(&self) -> bool
fn is_boolean(&self) -> bool
fn is_integer(&self) -> bool
fn is_null(&self) -> bool
fn is_number(&self) -> bool
fn is_object(&self) -> bool where
JsonMap<'json, T>: JsonMapTrait<'json, T>,
JsonMap<'json, T>: JsonMapTrait<'json, T>,
fn is_string(&self) -> bool
fn has_attribute(&self, attribute_name: &str) -> bool
fn primitive_type(&self) -> PrimitiveType where
JsonMap<'json, T>: JsonMapTrait<'json, T>,
JsonMap<'json, T>: JsonMapTrait<'json, T>,
fn to_rust_type(&self) -> RustType where
JsonMap<'json, T>: JsonMapTrait<'json, T>,
JsonMap<'json, T>: JsonMapTrait<'json, T>,
Implementations on Foreign Types
impl JsonType<JsonValue> for JsonValue
[src]
#[must_use]fn as_array<'json>(
&'json self
) -> Option<Box<dyn ExactSizeIterator<Item = &Self> + 'json>>
[src]
&'json self
) -> Option<Box<dyn ExactSizeIterator<Item = &Self> + 'json>>
#[must_use]fn as_boolean(&self) -> Option<bool>
[src]
#[must_use]fn as_integer(&self) -> Option<i128>
[src]
#[must_use]fn as_null(&self) -> Option<()>
[src]
#[must_use]fn as_number(&self) -> Option<f64>
[src]
#[must_use]fn as_object(&self) -> Option<JsonMap<Self>> where
JsonMap<'json, Self>: JsonMapTrait<'json, Self>,
[src]
JsonMap<'json, Self>: JsonMapTrait<'json, Self>,
#[must_use]fn as_string(&self) -> Option<&str>
[src]
#[must_use]fn get_attribute(&self, attribute_name: &str) -> Option<&Self>
[src]
#[must_use]fn get_index(&self, index: usize) -> Option<&Self>
[src]
impl JsonType<PyAny> for PyAny
[src]
#[must_use]fn as_array<'json>(
&'json self
) -> Option<Box<dyn ExactSizeIterator<Item = &Self> + 'json>>
[src]
&'json self
) -> Option<Box<dyn ExactSizeIterator<Item = &Self> + 'json>>
#[must_use]fn as_boolean(&self) -> Option<bool>
[src]
#[must_use]fn as_integer(&self) -> Option<i128>
[src]
#[must_use]fn as_null(&self) -> Option<()>
[src]
#[must_use]fn as_number(&self) -> Option<f64>
[src]
#[must_use]fn as_object(&self) -> Option<JsonMap<Self>> where
JsonMap<'json, Self>: JsonMapTrait<'json, Self>,
[src]
JsonMap<'json, Self>: JsonMapTrait<'json, Self>,
#[must_use]fn as_string(&self) -> Option<&str>
[src]
#[must_use]fn get_attribute(&self, attribute_name: &str) -> Option<&Self>
[src]
#[must_use]fn get_index(&self, index: usize) -> Option<&Self>
[src]
impl JsonType<Value> for Value
[src]
#[must_use]fn as_array<'json>(
&'json self
) -> Option<Box<dyn ExactSizeIterator<Item = &Self> + 'json>>
[src]
&'json self
) -> Option<Box<dyn ExactSizeIterator<Item = &Self> + 'json>>
#[must_use]fn as_boolean(&self) -> Option<bool>
[src]
#[must_use]fn as_integer(&self) -> Option<i128>
[src]
#[must_use]fn as_null(&self) -> Option<()>
[src]
#[must_use]fn as_number(&self) -> Option<f64>
[src]
#[must_use]fn as_object(&self) -> Option<JsonMap<Self>> where
JsonMap<'json, Self>: JsonMapTrait<'json, Self>,
[src]
JsonMap<'json, Self>: JsonMapTrait<'json, Self>,
#[must_use]fn as_string(&self) -> Option<&str>
[src]
#[must_use]fn get_attribute(&self, attribute_name: &str) -> Option<&Self>
[src]
#[must_use]fn get_index(&self, index: usize) -> Option<&Self>
[src]
#[must_use]fn has_attribute(&self, attribute_name: &str) -> bool
[src]
impl JsonType<Value> for Value
[src]
#[must_use]fn as_array<'json>(
&'json self
) -> Option<Box<dyn ExactSizeIterator<Item = &Self> + 'json>>
[src]
&'json self
) -> Option<Box<dyn ExactSizeIterator<Item = &Self> + 'json>>
#[must_use]fn as_boolean(&self) -> Option<bool>
[src]
#[must_use]fn as_integer(&self) -> Option<i128>
[src]
#[must_use]fn as_null(&self) -> Option<()>
[src]
#[must_use]fn as_number(&self) -> Option<f64>
[src]
#[must_use]fn as_object(&self) -> Option<JsonMap<Self>> where
JsonMap<'json, Self>: JsonMapTrait<'json, Self>,
[src]
JsonMap<'json, Self>: JsonMapTrait<'json, Self>,
#[must_use]fn as_string(&self) -> Option<&str>
[src]
#[must_use]fn get_attribute(&self, attribute_name: &str) -> Option<&Self>
[src]
#[must_use]fn get_index(&self, index: usize) -> Option<&Self>
[src]
#[must_use]fn has_attribute(&self, attribute_name: &str) -> bool
[src]
Implementors
impl JsonType<RustType> for RustType
[src]
#[must_use]fn as_array<'json>(
&'json self
) -> Option<Box<dyn ExactSizeIterator<Item = &Self> + 'json>>
[src]
&'json self
) -> Option<Box<dyn ExactSizeIterator<Item = &Self> + 'json>>
#[must_use]fn as_boolean(&self) -> Option<bool>
[src]
#[must_use]fn as_integer(&self) -> Option<i128>
[src]
#[must_use]fn as_null(&self) -> Option<()>
[src]
#[must_use]fn as_number(&self) -> Option<f64>
[src]
#[must_use]fn as_object(&self) -> Option<JsonMap<Self>> where
JsonMap<'json, Self>: JsonMapTrait<'json, Self>,
[src]
JsonMap<'json, Self>: JsonMapTrait<'json, Self>,