Struct rivet_matchmaker::model::matchmaker_lobby_join_info::Builder
source · #[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for MatchmakerLobbyJoinInfo
Implementations
sourceimpl Builder
impl Builder
sourcepub fn set_lobby_id(self, input: Option<String>) -> Self
pub fn set_lobby_id(self, input: Option<String>) -> Self
A universally unique identifier.
sourcepub fn region(self, input: MatchmakerLobbyJoinInfoRegion) -> Self
pub fn region(self, input: MatchmakerLobbyJoinInfoRegion) -> Self
A matchmaker lobby region.
sourcepub fn set_region(self, input: Option<MatchmakerLobbyJoinInfoRegion>) -> Self
pub fn set_region(self, input: Option<MatchmakerLobbyJoinInfoRegion>) -> Self
A matchmaker lobby region.
sourcepub fn ports(self, k: impl Into<String>, v: MatchmakerLobbyJoinInfoPort) -> Self
pub fn ports(self, k: impl Into<String>, v: MatchmakerLobbyJoinInfoPort) -> Self
Adds a key-value pair to ports
.
To override the contents of this collection use set_ports
.
A list of lobby ports.
sourcepub fn set_ports(
self,
input: Option<HashMap<String, MatchmakerLobbyJoinInfoPort>>
) -> Self
pub fn set_ports(
self,
input: Option<HashMap<String, MatchmakerLobbyJoinInfoPort>>
) -> Self
A list of lobby ports.
sourcepub fn player(self, input: MatchmakerLobbyJoinInfoPlayer) -> Self
pub fn player(self, input: MatchmakerLobbyJoinInfoPlayer) -> Self
A matchmaker lobby player.
sourcepub fn set_player(self, input: Option<MatchmakerLobbyJoinInfoPlayer>) -> Self
pub fn set_player(self, input: Option<MatchmakerLobbyJoinInfoPlayer>) -> Self
A matchmaker lobby player.
sourcepub fn build(self) -> MatchmakerLobbyJoinInfo
pub fn build(self) -> MatchmakerLobbyJoinInfo
Consumes the builder and constructs a MatchmakerLobbyJoinInfo
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more