Struct querystrong::QueryStrong[][src]

pub struct QueryStrong(_);

Implementations

impl QueryStrong[src]

pub fn new() -> Self[src]

Creates a new (empty) querystrong that contains a map as the top level value

pub fn parse(s: &str) -> Result<Self>[src]

Attempts to create a build a querystrong from the supplied querystring

Methods from Deref<Target = Value>

pub fn is_map(&self) -> bool[src]

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

pub fn is_list(&self) -> bool[src]

pub fn as_slice(&self) -> Option<&[Self]>[src]

pub fn as_map(&self) -> Option<&BTreeMap<String, Value>>[src]

pub fn as_str(&self) -> Option<&str>[src]

pub fn is_empty(&self) -> bool[src]

this is a general-purpose predicate that is broader than just whether the value is an Empty. Zero-length Values of any sort will return true from is_empty

pub fn len(&self) -> usize[src]

pub fn append(
    &mut self,
    key: impl Into<IndexPath>,
    value: impl Into<Value>
) -> Result<()>
[src]

pub fn get(&self, key: impl Into<IndexPath>) -> Option<&Value>[src]

pub fn get_str(&self, key: impl Into<IndexPath>) -> Option<&str>[src]

pub fn get_slice(&self, key: impl Into<IndexPath>) -> Option<&[Value]>[src]

pub fn get_map(
    &self,
    key: impl Into<IndexPath>
) -> Option<&BTreeMap<String, Value>>
[src]

Trait Implementations

impl Clone for QueryStrong[src]

impl Debug for QueryStrong[src]

impl Default for QueryStrong[src]

impl Deref for QueryStrong[src]

type Target = Value

The resulting type after dereferencing.

impl DerefMut for QueryStrong[src]

impl Display for QueryStrong[src]

impl Eq for QueryStrong[src]

impl<V: Into<Value>> From<V> for QueryStrong[src]

impl FromStr for QueryStrong[src]

type Err = Error

The associated error which can be returned from parsing.

impl<K> Index<K> for QueryStrong where
    K: Into<IndexPath>, 
[src]

type Output = Value

The returned type after indexing.

impl<'a> IntoIterator for &'a QueryStrong[src]

type Item = (IndexPath, Option<String>)

The type of the elements being iterated over.

type IntoIter = Box<dyn Iterator<Item = Self::Item> + 'a>

Which kind of iterator are we turning this into?

impl PartialEq<QueryStrong> for QueryStrong[src]

impl StructuralEq for QueryStrong[src]

impl StructuralPartialEq for QueryStrong[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.