Enum tasvideos_api_rs::Filter
source · 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§
source§impl PartialEq<Filter> for Filter
impl PartialEq<Filter> for Filter
impl Eq for Filter
impl StructuralEq for Filter
impl StructuralPartialEq for Filter
Auto Trait Implementations§
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.