Enum keshvar::SearchedItems
source · pub enum SearchedItems {
AllContinents,
AllRegions,
AllSubRegions,
AllWorldRegions,
AllCountries,
SupportedCountries(usize),
AllSubDivisionTypes,
AllSubdivisions(usize),
}Expand description
An enum showing what items we did search before yielding error.
Variants§
AllContinents
We searched all continents.
AllRegions
We searched all regions.
AllSubRegions
We searched all sub-regions.
AllWorldRegions
We searched all world regions.
AllCountries
We searched all countries.
SupportedCountries(usize)
We searched supported countries (when you did not include all countries).
It also contains number of countries that you support.
AllSubDivisionTypes
We searched all subdivision types.
AllSubdivisions(usize)
We searched all subdivisions.
It also contains the number of subdivisions.
Trait Implementations§
source§impl Clone for SearchedItems
impl Clone for SearchedItems
source§fn clone(&self) -> SearchedItems
fn clone(&self) -> SearchedItems
Returns a copy 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 SearchedItems
impl Debug for SearchedItems
source§impl Display for SearchedItems
impl Display for SearchedItems
source§impl Error for SearchedItems
impl Error for SearchedItems
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for SearchedItems
impl PartialEq for SearchedItems
source§fn eq(&self, other: &SearchedItems) -> bool
fn eq(&self, other: &SearchedItems) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for SearchedItems
impl StructuralPartialEq for SearchedItems
Auto Trait Implementations§
impl RefUnwindSafe for SearchedItems
impl Send for SearchedItems
impl Sync for SearchedItems
impl Unpin for SearchedItems
impl UnwindSafe for SearchedItems
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