#[non_exhaustive]pub enum KeyClass {
Pagination,
Identifier,
Search,
Tracking,
Session,
Locale,
Format,
Filter,
SingleChar,
Numeric,
}Expand description
What a query key is for, judged from the key alone.
Keys are named by the software that serves the page, so they say something about it. Values are the user’s business and are never read: a search term or an identifier is exactly the kind of thing that could make a slot personal.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Pagination
Paging through a list.
Identifier
Naming one record.
Search
A search.
Tracking
Campaign tagging, added by whoever linked here rather than by the site.
Session
A session or a token.
Locale
Language or region.
Format
Asking for a particular output format.
Filter
Sorting or filtering a list.
SingleChar
A single character key, the mark of a hand rolled query string.
Numeric
A key that is only digits.
Trait Implementations§
impl Copy for KeyClass
impl Eq for KeyClass
impl StructuralPartialEq for KeyClass
Auto Trait Implementations§
impl Forget for KeyClass
impl Freeze for KeyClass
impl Move for KeyClass
impl RefUnwindSafe for KeyClass
impl Send for KeyClass
impl Sync for KeyClass
impl Unpin for KeyClass
impl UnsafeUnpin for KeyClass
impl UnwindSafe for KeyClass
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