pub struct DimensionQuery<T: DeserializeOwned>(pub T);Expand description
Provides struct to extract those query params from the request which are wrapped in dimension[param_name]
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: Clone + DeserializeOwned> Clone for DimensionQuery<T>
impl<T: Clone + DeserializeOwned> Clone for DimensionQuery<T>
Source§fn clone(&self) -> DimensionQuery<T>
fn clone(&self) -> DimensionQuery<T>
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<T> CustomQuery for DimensionQuery<T>where
T: DeserializeOwned,
impl<T> CustomQuery for DimensionQuery<T>where
T: DeserializeOwned,
type Inner = T
fn regex_pattern() -> &'static str
fn capture_group() -> &'static str
fn into_inner(self) -> T
fn new(inner: Self::Inner) -> Self
fn query_regex() -> Regex
fn extract_query(query_string: &str) -> Result<Self, String>
fn filter_and_transform_query(query_map: HashMap<String, String>) -> String
fn extract_key(regex: &Regex, key: &str) -> Option<String>
fn extract_non_empty(query_string: &str) -> Self
Source§impl<T: Debug + DeserializeOwned> Debug for DimensionQuery<T>
impl<T: Debug + DeserializeOwned> Debug for DimensionQuery<T>
Source§impl Default for DimensionQuery<QueryMap>
impl Default for DimensionQuery<QueryMap>
Source§impl<T: DeserializeOwned> Deref for DimensionQuery<T>
impl<T: DeserializeOwned> Deref for DimensionQuery<T>
Source§impl<T: DeserializeOwned> DerefMut for DimensionQuery<T>
impl<T: DeserializeOwned> DerefMut for DimensionQuery<T>
Source§impl<T: PartialEq + DeserializeOwned> PartialEq for DimensionQuery<T>
impl<T: PartialEq + DeserializeOwned> PartialEq for DimensionQuery<T>
Source§impl QueryParam for DimensionQuery<QueryMap>
impl QueryParam for DimensionQuery<QueryMap>
fn to_query_param(&self) -> String
impl<T: DeserializeOwned> StructuralPartialEq for DimensionQuery<T>
Auto Trait Implementations§
impl<T> Freeze for DimensionQuery<T>where
T: Freeze,
impl<T> RefUnwindSafe for DimensionQuery<T>where
T: RefUnwindSafe,
impl<T> Send for DimensionQuery<T>where
T: Send,
impl<T> Sync for DimensionQuery<T>where
T: Sync,
impl<T> Unpin for DimensionQuery<T>where
T: Unpin,
impl<T> UnwindSafe for DimensionQuery<T>where
T: UnwindSafe,
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