Struct querystrong::QueryStrong [−][src]
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]
&mut self,
key: impl Into<IndexPath>,
value: impl Into<Value>
) -> Result<()>
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]
&self,
key: impl Into<IndexPath>
) -> Option<&BTreeMap<String, Value>>
Trait Implementations
impl Clone for QueryStrong
[src]
fn clone(&self) -> QueryStrong
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for QueryStrong
[src]
impl Default for QueryStrong
[src]
impl Deref for QueryStrong
[src]
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.
fn from_str(s: &str) -> Result<Self>
[src]
impl<K> Index<K> for QueryStrong where
K: Into<IndexPath>,
[src]
K: Into<IndexPath>,
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?
fn into_iter(self) -> Self::IntoIter
[src]
impl PartialEq<QueryStrong> for QueryStrong
[src]
fn eq(&self, other: &QueryStrong) -> bool
[src]
fn ne(&self, other: &QueryStrong) -> bool
[src]
impl StructuralEq for QueryStrong
[src]
impl StructuralPartialEq for QueryStrong
[src]
Auto Trait Implementations
impl RefUnwindSafe for QueryStrong
impl Send for QueryStrong
impl Sync for QueryStrong
impl Unpin for QueryStrong
impl UnwindSafe for QueryStrong
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> 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>,