Struct discord_sdk::lobby::search::SearchQuery [−][src]
pub struct SearchQuery { /* fields omitted */ }
Expand description
A query used to search for lobbies that match a set of criteria.
By default, this will find a maximum of 25
lobbies in the same or adjacent
regions as the current user.
Implementations
pub fn add_filter<'md>(
self,
key: impl Into<SearchKey<'md>>,
comparison: LobbySearchComparison,
value: SearchValue
) -> Self
pub fn add_filter<'md>(
self,
key: impl Into<SearchKey<'md>>,
comparison: LobbySearchComparison,
value: SearchValue
) -> Self
Adds a filter to the query which compares the value of the specified key with the specified comparison against the specified value.
Sorts the filtered lobbies based on “near-ness” of the specified key’s value to the specified sort value.
Sets the maximum number of lobbies that can be returned by the search.
Filters lobby results to within certain regions relative to the user’s location.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SearchQuery
impl Send for SearchQuery
impl Sync for SearchQuery
impl Unpin for SearchQuery
impl UnwindSafe for SearchQuery
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more