#[non_exhaustive]pub struct MatchedPlayerSessionBuilder { /* private fields */ }Expand description
A builder for MatchedPlayerSession.
Implementations§
source§impl MatchedPlayerSessionBuilder
impl MatchedPlayerSessionBuilder
sourcepub fn set_player_id(self, input: Option<String>) -> Self
pub fn set_player_id(self, input: Option<String>) -> Self
A unique identifier for a player
sourcepub fn get_player_id(&self) -> &Option<String>
pub fn get_player_id(&self) -> &Option<String>
A unique identifier for a player
sourcepub fn player_session_id(self, input: impl Into<String>) -> Self
pub fn player_session_id(self, input: impl Into<String>) -> Self
A unique identifier for a player session
sourcepub fn set_player_session_id(self, input: Option<String>) -> Self
pub fn set_player_session_id(self, input: Option<String>) -> Self
A unique identifier for a player session
sourcepub fn get_player_session_id(&self) -> &Option<String>
pub fn get_player_session_id(&self) -> &Option<String>
A unique identifier for a player session
sourcepub fn build(self) -> MatchedPlayerSession
pub fn build(self) -> MatchedPlayerSession
Consumes the builder and constructs a MatchedPlayerSession.
Trait Implementations§
source§impl Clone for MatchedPlayerSessionBuilder
impl Clone for MatchedPlayerSessionBuilder
source§fn clone(&self) -> MatchedPlayerSessionBuilder
fn clone(&self) -> MatchedPlayerSessionBuilder
Returns a copy 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 MatchedPlayerSessionBuilder
impl Debug for MatchedPlayerSessionBuilder
source§impl Default for MatchedPlayerSessionBuilder
impl Default for MatchedPlayerSessionBuilder
source§fn default() -> MatchedPlayerSessionBuilder
fn default() -> MatchedPlayerSessionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for MatchedPlayerSessionBuilder
impl PartialEq for MatchedPlayerSessionBuilder
source§fn eq(&self, other: &MatchedPlayerSessionBuilder) -> bool
fn eq(&self, other: &MatchedPlayerSessionBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for MatchedPlayerSessionBuilder
Auto Trait Implementations§
impl RefUnwindSafe for MatchedPlayerSessionBuilder
impl Send for MatchedPlayerSessionBuilder
impl Sync for MatchedPlayerSessionBuilder
impl Unpin for MatchedPlayerSessionBuilder
impl UnwindSafe for MatchedPlayerSessionBuilder
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
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>
Creates a shared type from an unshared type.