pub struct SearchQuery { /* private fields */ }
Expand description
Lobby Search
Implementations§
Source§impl SearchQuery
impl SearchQuery
Sourcepub fn filter(
&mut self,
key: String,
comparison: Comparison,
value: String,
cast: Cast,
) -> &mut Self
pub fn filter( &mut self, key: String, comparison: Comparison, value: String, cast: Cast, ) -> &mut Self
Filters lobbies based on metadata comparison.
§Performance
A nul byte will be appended to key
and value
if one is not present.
Sourcepub fn sort(&mut self, key: String, value: String, cast: Cast) -> &mut Self
pub fn sort(&mut self, key: String, value: String, cast: Cast) -> &mut Self
Sorts the filtered lobbies based on “near-ness” to a given value
§Performance
A nul byte will be appended to key
and value
if one is not present.
Sourcepub fn limit(&mut self, limit: u32) -> &mut Self
pub fn limit(&mut self, limit: u32) -> &mut Self
Limits the number of lobbies returned in a search
Trait Implementations§
Source§impl Clone for SearchQuery
impl Clone for SearchQuery
Source§fn clone(&self) -> SearchQuery
fn clone(&self) -> SearchQuery
Returns a duplicate 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 SearchQuery
impl Debug for SearchQuery
Source§impl Default for SearchQuery
impl Default for SearchQuery
Source§fn default() -> SearchQuery
fn default() -> SearchQuery
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SearchQuery
impl RefUnwindSafe for SearchQuery
impl Send for SearchQuery
impl Sync for SearchQuery
impl Unpin for SearchQuery
impl UnwindSafe for SearchQuery
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