Struct modio::me::RatingsListOptions [−][src]
pub struct RatingsListOptions { /* fields omitted */ }
Options used to filter rating listings.
Filter parameters
- _q
- game_id
- mod_id
- date_added
See the mod.io docs for more informations.
By default this returns up to 100
items. You can limit the result using limit
and
offset
.
Example
use modio::filter::{Order, Operator}; use modio::me::RatingsListOptions; let mut opts = RatingsListOptions::new(); opts.game_id(Operator::In, vec![1, 2]); opts.sort_by(RatingsListOptions::DATE_ADDED, Order::Desc);
Methods
impl RatingsListOptions
[src]
impl RatingsListOptions
pub const GAME_ID: SortField
GAME_ID: SortField = ::filter::SortField("game_id")
pub const MOD_ID: SortField
MOD_ID: SortField = ::filter::SortField("mod_id")
pub const DATE_ADDED: SortField
DATE_ADDED: SortField = ::filter::SortField("date_added")
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn add_filter<S, T, V>(
&mut self,
name: S,
op: Operator,
value: V
) -> &mut Self where
S: Into<String>,
T: Display,
V: Into<OneOrMany<T>>,
[src]
pub fn add_filter<S, T, V>(
&mut self,
name: S,
op: Operator,
value: V
) -> &mut Self where
S: Into<String>,
T: Display,
V: Into<OneOrMany<T>>,
pub fn fulltext<T, V>(&mut self, value: V) -> &mut Self where
T: Display,
V: Into<OneOrMany<T>>,
[src]
pub fn fulltext<T, V>(&mut self, value: V) -> &mut Self where
T: Display,
V: Into<OneOrMany<T>>,
pub fn game_id<T, V>(&mut self, op: Operator, value: V) -> &mut Self where
T: Display,
V: Into<OneOrMany<T>>,
[src]
pub fn game_id<T, V>(&mut self, op: Operator, value: V) -> &mut Self where
T: Display,
V: Into<OneOrMany<T>>,
pub fn mod_id<T, V>(&mut self, op: Operator, value: V) -> &mut Self where
T: Display,
V: Into<OneOrMany<T>>,
[src]
pub fn mod_id<T, V>(&mut self, op: Operator, value: V) -> &mut Self where
T: Display,
V: Into<OneOrMany<T>>,
pub fn date_added<T, V>(&mut self, op: Operator, value: V) -> &mut Self where
T: Display,
V: Into<OneOrMany<T>>,
[src]
pub fn date_added<T, V>(&mut self, op: Operator, value: V) -> &mut Self where
T: Display,
V: Into<OneOrMany<T>>,
pub fn sort_by(&mut self, field: SortField, order: Order) -> &mut Self
[src]
pub fn sort_by(&mut self, field: SortField, order: Order) -> &mut Self
pub fn limit<T: Into<Option<usize>>>(&mut self, limit: T) -> &mut Self
[src]
pub fn limit<T: Into<Option<usize>>>(&mut self, limit: T) -> &mut Self
pub fn offset<T: Into<Option<usize>>>(&mut self, offset: T) -> &mut Self
[src]
pub fn offset<T: Into<Option<usize>>>(&mut self, offset: T) -> &mut Self
Trait Implementations
impl Debug for RatingsListOptions
[src]
impl Debug for RatingsListOptions
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for RatingsListOptions
[src]
impl Default for RatingsListOptions
impl QueryParams for RatingsListOptions
[src]
impl QueryParams for RatingsListOptions
fn to_query_params(&self) -> String
[src]
fn to_query_params(&self) -> String
Auto Trait Implementations
impl Send for RatingsListOptions
impl Send for RatingsListOptions
impl Sync for RatingsListOptions
impl Sync for RatingsListOptions