#[non_exhaustive]pub struct FindLobbyInput {
pub game_modes: Option<Vec<String>>,
pub regions: Option<Vec<String>>,
pub prevent_auto_create_lobby: Option<bool>,
pub captcha: Option<CaptchaConfig>,
pub origin: Option<String>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.game_modes: Option<Vec<String>>
Game modes to match lobbies against.
regions: Option<Vec<String>>
Regions to match lobbies against. If not specified, the optimal region will be determined and will attempt to find lobbies in that region.
prevent_auto_create_lobby: Option<bool>
Prevents a new lobby from being created when finding a lobby. If no lobby is found, a MATCHMAKER_LOBBY_NOT_FOUND
error will be thrown.
captcha: Option<CaptchaConfig>
Methods to verify a captcha.
origin: Option<String>
Implementations§
Source§impl FindLobbyInput
impl FindLobbyInput
Sourcepub async fn make_operation(
&self,
_config: &Config,
) -> Result<Operation<FindLobby, ()>, BuildError>
pub async fn make_operation( &self, _config: &Config, ) -> Result<Operation<FindLobby, ()>, BuildError>
Consumes the builder and constructs an Operation<FindLobby
>
Sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture FindLobbyInput
Source§impl FindLobbyInput
impl FindLobbyInput
Sourcepub fn game_modes(&self) -> Option<&[String]>
pub fn game_modes(&self) -> Option<&[String]>
Game modes to match lobbies against.
Sourcepub fn regions(&self) -> Option<&[String]>
pub fn regions(&self) -> Option<&[String]>
Regions to match lobbies against. If not specified, the optimal region will be determined and will attempt to find lobbies in that region.
Sourcepub fn prevent_auto_create_lobby(&self) -> Option<bool>
pub fn prevent_auto_create_lobby(&self) -> Option<bool>
Prevents a new lobby from being created when finding a lobby. If no lobby is found, a MATCHMAKER_LOBBY_NOT_FOUND
error will be thrown.
Sourcepub fn captcha(&self) -> Option<&CaptchaConfig>
pub fn captcha(&self) -> Option<&CaptchaConfig>
Methods to verify a captcha.
pub fn origin(&self) -> Option<&str>
Trait Implementations§
Source§impl Clone for FindLobbyInput
impl Clone for FindLobbyInput
Source§fn clone(&self) -> FindLobbyInput
fn clone(&self) -> FindLobbyInput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for FindLobbyInput
impl Debug for FindLobbyInput
Source§impl PartialEq for FindLobbyInput
impl PartialEq for FindLobbyInput
impl StructuralPartialEq for FindLobbyInput
Auto Trait Implementations§
impl Freeze for FindLobbyInput
impl RefUnwindSafe for FindLobbyInput
impl Send for FindLobbyInput
impl Sync for FindLobbyInput
impl Unpin for FindLobbyInput
impl UnwindSafe for FindLobbyInput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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