pub struct Parameters(pub IndexMap<String, Parameter>);
Tuple Fields§
§0: IndexMap<String, Parameter>
Implementations§
Source§impl Parameters
impl Parameters
pub const ORDER: &str = "order"
pub const LIMIT: &str = "limit"
pub const OFFSET: &str = "offset"
pub const EXCLUDE: [&str; 3]
pub const DEFAULT_LIMIT: usize = 50usize
pub const DEFAULT_OFFSET: usize = 0usize
pub fn new() -> Self
pub fn inner(&self) -> &IndexMap<String, Parameter>
pub fn inner_mut(&mut self) -> &mut IndexMap<String, Parameter>
pub fn equals(&mut self, key: String, values: Vec<String>) -> &mut Self
pub fn contains(&mut self, key: String, values: Vec<String>) -> &mut Self
pub fn starts_with(&mut self, key: String, values: Vec<String>) -> &mut Self
pub fn ends_with(&mut self, key: String, values: Vec<String>) -> &mut Self
pub fn between(&mut self, key: String, values: Vec<String>) -> &mut Self
pub fn lesser(&mut self, key: String, values: Vec<String>) -> &mut Self
pub fn lesser_or_equal(&mut self, key: String, values: Vec<String>) -> &mut Self
pub fn greater(&mut self, key: String, values: Vec<String>) -> &mut Self
pub fn greater_or_equal( &mut self, key: String, values: Vec<String>, ) -> &mut Self
pub fn keep(&self, keys: Vec<String>) -> Self
pub fn remove(&self, keys: Vec<String>) -> Self
Trait Implementations§
Source§impl Clone for Parameters
impl Clone for Parameters
Source§fn clone(&self) -> Parameters
fn clone(&self) -> Parameters
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Parameters
impl Debug for Parameters
Source§impl Default for Parameters
impl Default for Parameters
Source§impl FromStr for Parameters
impl FromStr for Parameters
Source§impl PartialEq for Parameters
impl PartialEq for Parameters
impl StructuralPartialEq for Parameters
Auto Trait Implementations§
impl Freeze for Parameters
impl RefUnwindSafe for Parameters
impl Send for Parameters
impl Sync for Parameters
impl Unpin for Parameters
impl UnwindSafe for Parameters
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more