pub enum Filter {
Show 17 variants
Statuses(Vec<String>),
Users(Vec<String>),
Systems(Vec<String>),
ClassNames(Vec<String>),
StartYear(i32),
EndYear(i32),
GenreNames(Vec<String>),
TagNames(Vec<String>),
FlagNames(Vec<String>),
AuthorIds(Vec<i32>),
ShowObsoleted(bool),
GameIds(Vec<i32>),
Games(Vec<i32>),
GameGroupIds(Vec<i32>),
PageSize(u32),
CurrentPage(u32),
Sorts(Vec<String>),
}Expand description
Some endpoints can use these filters to refine what data is returned.
Endpoints that support filters will accept a Vec<QueryFilter> argument. The order of filters
doesn’t matter. Using multiple of the same kind of filter is not recommended, and may produce
undefined behavior. Each endpoint may not support all available filter types, refer to the docs
on each function to know what is supported. Any unsupported filters will be quietly ignored.
Variants§
Statuses(Vec<String>)
Users(Vec<String>)
Systems(Vec<String>)
ClassNames(Vec<String>)
StartYear(i32)
EndYear(i32)
GenreNames(Vec<String>)
TagNames(Vec<String>)
FlagNames(Vec<String>)
AuthorIds(Vec<i32>)
ShowObsoleted(bool)
GameIds(Vec<i32>)
Games(Vec<i32>)
GameGroupIds(Vec<i32>)
PageSize(u32)
CurrentPage(u32)
Sorts(Vec<String>)
Implementations§
Trait Implementations§
impl Eq for Filter
impl StructuralPartialEq for Filter
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnwindSafe for Filter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more