[−][src]Enum unstructured::Unstructured
Variants
Bool(bool)
Number(Number)
String(String)
Char(char)
Seq(Sequence<T>)
Map(Mapping<T>)
Option(Option<Box<Unstructured<T>>>)
Newtype(Box<Unstructured<T>>)
Err(T::ErrorType)
Other(T::OtherType)
Implementations
impl<T: UnstructuredDataTrait> Unstructured<T>
[src]
pub fn select<'a>(&'a self, sel: &str) -> Result<&'a Unstructured<T>, String> where
T: Clone,
[src]
T: Clone,
pub fn select_mut<'a>(
&'a mut self,
sel: &str
) -> Result<&'a mut Unstructured<T>, String> where
T: Clone,
[src]
&'a mut self,
sel: &str
) -> Result<&'a mut Unstructured<T>, String> where
T: Clone,
pub fn filter(
docs: &[Unstructured<T>],
sel: &str
) -> Result<Unstructured<T>, String> where
T: Clone,
[src]
docs: &[Unstructured<T>],
sel: &str
) -> Result<Unstructured<T>, String> where
T: Clone,
impl<Q: UnstructuredDataTrait> Unstructured<Q>
[src]
pub fn is<T: DocumentConvertible<Q>>(&self) -> bool
[src]
pub fn unwrap<T: DocumentConvertible<Q>>(self) -> T
[src]
pub fn cast<T: DocumentConvertible<Q>>(self) -> Option<T>
[src]
impl<T: UnstructuredDataTrait> Unstructured<T>
[src]
pub fn get_path(&self, path: &[&Self]) -> &Self where
Self: Index<T>,
[src]
Self: Index<T>,
pub fn set_path<U: Into<Self>>(&mut self, val: U, path: &[&Self]) where
Self: Index<T>,
[src]
Self: Index<T>,
pub fn set<U: Into<Self>>(&mut self, val: U)
[src]
pub fn replace<U: Into<Self>>(&mut self, new_val: U) -> Self
[src]
pub fn take(&mut self) -> Self
[src]
pub fn is_null(&self) -> bool
[src]
pub fn is_number(&self) -> bool
[src]
pub fn is_signed(&self) -> bool
[src]
Returns true if the value is any signed integer (i8, i16, i32, i64)
pub fn is_unsigned(&self) -> bool
[src]
Returns true if the value is any unsigned integer (u8, u16, u32, u64)
pub fn is_float(&self) -> bool
[src]
Returns true if the value is any float (f32, f64)
pub fn as_usize(&self) -> Option<usize>
[src]
pub fn try_into<'de, Q: Deserialize<'de>>(self) -> Result<Q, DeserializerError>
[src]
This attempts to deserialize the document into a type that implements Deserialize
pub fn new<Q: Serialize>(value: Q) -> Result<Self, SerializerError>
[src]
This creates a new document from a type that implements Serialize
pub fn merge(&mut self, mut other: Self)
[src]
Merge another document into this one, consuming both documents into the result. If this document is not a map or seq, it will be overwritten. If this document is a seq and the other is also a seq, the other seq will be appended to the end of this one. If the other document is not a seq, then it will be appended to the end of the sequence in this one. If this document is a map and the other document is also be a map, merging maps will cause values from the other document to overwrite this one. Otherwise, the value from the other document will overwrite this one.
Trait Implementations
impl<T: UnstructuredDataTrait> Add<Unstructured<T>> for Unstructured<T>
[src]
type Output = Unstructured<T>
The resulting type after applying the +
operator.
pub fn add(mut self: Self, rhs: Unstructured<T>) -> Unstructured<T>
[src]
impl<T: Clone + UnstructuredDataTrait> Clone for Unstructured<T> where
T::ErrorType: Clone,
T::OtherType: Clone,
[src]
T::ErrorType: Clone,
T::OtherType: Clone,
pub fn clone(&self) -> Unstructured<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug + UnstructuredDataTrait> Debug for Unstructured<T> where
T::ErrorType: Debug,
T::OtherType: Debug,
[src]
T::ErrorType: Debug,
T::OtherType: Debug,
impl<T: UnstructuredDataTrait> Default for Unstructured<T>
[src]
impl<'de, T: UnstructuredDataTrait> Deserialize<'de> for Unstructured<T>
[src]
pub fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
[src]
impl<'de, T: UnstructuredDataTrait> Deserializer<'de> for Unstructured<T>
[src]
type Error = DeserializerError
The error type that can be returned if some error occurs during deserialization. Read more
pub fn deserialize_any<V: Visitor<'de>>(
self,
visitor: V
) -> Result<V::Value, Self::Error>
[src]
self,
visitor: V
) -> Result<V::Value, Self::Error>
pub fn deserialize_option<V: Visitor<'de>>(
self,
visitor: V
) -> Result<V::Value, Self::Error>
[src]
self,
visitor: V
) -> Result<V::Value, Self::Error>
pub fn deserialize_enum<V: Visitor<'de>>(
self,
name: &'static str,
variants: &'static [&'static str],
visitor: V
) -> Result<V::Value, Self::Error>
[src]
self,
name: &'static str,
variants: &'static [&'static str],
visitor: V
) -> Result<V::Value, Self::Error>
pub fn deserialize_newtype_struct<V: Visitor<'de>>(
self,
name: &'static str,
visitor: V
) -> Result<V::Value, Self::Error>
[src]
self,
name: &'static str,
visitor: V
) -> Result<V::Value, Self::Error>
pub fn deserialize_bool<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_u8<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_u16<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_u32<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_u64<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_u128<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_i8<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_i16<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_i32<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_i64<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_i128<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_f32<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_f64<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_char<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_str<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_string<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_unit<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_seq<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_bytes<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_byte_buf<V>(
self,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
[src]
self,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
pub fn deserialize_map<V>(self, visitor: V) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
[src]
V: Visitor<'de>,
pub fn deserialize_unit_struct<V>(
self,
name: &'static str,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
[src]
self,
name: &'static str,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
pub fn deserialize_tuple_struct<V>(
self,
name: &'static str,
len: usize,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
[src]
self,
name: &'static str,
len: usize,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
pub fn deserialize_struct<V>(
self,
name: &'static str,
fields: &'static [&'static str],
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
[src]
self,
name: &'static str,
fields: &'static [&'static str],
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
pub fn deserialize_tuple<V>(
self,
len: usize,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
[src]
self,
len: usize,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
pub fn deserialize_ignored_any<V>(
self,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
[src]
self,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
pub fn deserialize_identifier<V>(
self,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
[src]
self,
visitor: V
) -> Result<V::Value, Self::Error> where
V: Visitor<'de>,
pub fn is_human_readable(&self) -> bool
[src]
impl<T: UnstructuredDataTrait> Display for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> Eq for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> From<&'_ BTreeMap<Unstructured<T>, Unstructured<T>>> for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> From<&'_ Box<Unstructured<T>, Global>> for Unstructured<T>
[src]
pub fn from(n: &Box<Unstructured<T>>) -> Self
[src]
impl<T: UnstructuredDataTrait> From<&'_ Option<Box<Unstructured<T>, Global>>> for Unstructured<T>
[src]
pub fn from(n: &Option<Box<Unstructured<T>>>) -> Self
[src]
impl<T: UnstructuredDataTrait> From<&'_ String> for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> From<&'_ Vec<Unstructured<T>, Global>> for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> From<&'_ Vec<u8, Global>> for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> From<&'_ bool> for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> From<&'_ char> for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> From<&'_ str> for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> From<BTreeMap<Unstructured<T>, Unstructured<T>>> for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> From<Box<Unstructured<T>, Global>> for Unstructured<T>
[src]
pub fn from(n: Box<Unstructured<T>>) -> Self
[src]
impl<T: UnstructuredDataTrait> From<Option<Box<Unstructured<T>, Global>>> for Unstructured<T>
[src]
pub fn from(n: Option<Box<Unstructured<T>>>) -> Self
[src]
impl<T: UnstructuredDataTrait> From<String> for Unstructured<T>
[src]
impl<T: Into<Number>, Q: UnstructuredDataTrait> From<T> for Unstructured<Q>
[src]
impl<T: UnstructuredDataTrait> From<Vec<Unstructured<T>, Global>> for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> From<Vec<u8, Global>> for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> From<bool> for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> From<char> for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> Hash for Unstructured<T>
[src]
pub fn hash<H>(&self, hasher: &mut H) where
H: Hasher,
[src]
H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<I, T: UnstructuredDataTrait> Index<I> for Unstructured<T> where
I: Index<T>,
[src]
I: Index<T>,
impl<I, T: UnstructuredDataTrait> IndexMut<I> for Unstructured<T> where
I: Index<T>,
[src]
I: Index<T>,
pub fn index_mut(&mut self, index: I) -> &mut Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> Ord for Unstructured<T>
[src]
pub fn cmp(&self, rhs: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<T: UnstructuredDataTrait> PartialEq<&'_ str> for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> PartialEq<Number> for Unstructured<T>
[src]
pub fn eq(&self, rhs: &Number) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T: UnstructuredDataTrait> PartialEq<String> for Unstructured<T>
[src]
pub fn eq(&self, rhs: &String) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T: UnstructuredDataTrait> PartialEq<Unstructured<T>> for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> PartialEq<Unstructured<T>> for Number
[src]
pub fn eq(&self, rhs: &Unstructured<T>) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T: UnstructuredDataTrait> PartialEq<bool> for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> PartialEq<char> for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> PartialEq<f32> for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> PartialEq<f64> for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> PartialEq<i128> for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> PartialEq<i16> for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> PartialEq<i32> for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> PartialEq<i64> for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> PartialEq<i8> for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> PartialEq<u128> for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> PartialEq<u16> for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> PartialEq<u32> for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> PartialEq<u64> for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> PartialEq<u8> for Unstructured<T>
[src]
impl<T: UnstructuredDataTrait> PartialOrd<Unstructured<T>> for Unstructured<T>
[src]
pub fn partial_cmp(&self, rhs: &Self) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T: UnstructuredDataTrait> Serialize for Unstructured<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Unstructured<T> where
<T as UnstructuredDataTrait>::ErrorType: RefUnwindSafe,
<T as UnstructuredDataTrait>::OtherType: RefUnwindSafe,
[src]
<T as UnstructuredDataTrait>::ErrorType: RefUnwindSafe,
<T as UnstructuredDataTrait>::OtherType: RefUnwindSafe,
impl<T> Send for Unstructured<T> where
<T as UnstructuredDataTrait>::ErrorType: Send,
<T as UnstructuredDataTrait>::OtherType: Send,
[src]
<T as UnstructuredDataTrait>::ErrorType: Send,
<T as UnstructuredDataTrait>::OtherType: Send,
impl<T> Sync for Unstructured<T> where
<T as UnstructuredDataTrait>::ErrorType: Sync,
<T as UnstructuredDataTrait>::OtherType: Sync,
[src]
<T as UnstructuredDataTrait>::ErrorType: Sync,
<T as UnstructuredDataTrait>::OtherType: Sync,
impl<T> Unpin for Unstructured<T> where
<T as UnstructuredDataTrait>::ErrorType: Unpin,
<T as UnstructuredDataTrait>::OtherType: Unpin,
[src]
<T as UnstructuredDataTrait>::ErrorType: Unpin,
<T as UnstructuredDataTrait>::OtherType: Unpin,
impl<T> UnwindSafe for Unstructured<T> where
<T as UnstructuredDataTrait>::ErrorType: RefUnwindSafe + UnwindSafe,
<T as UnstructuredDataTrait>::OtherType: RefUnwindSafe + UnwindSafe,
[src]
<T as UnstructuredDataTrait>::ErrorType: RefUnwindSafe + UnwindSafe,
<T as UnstructuredDataTrait>::OtherType: RefUnwindSafe + UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub 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>,