[−][src]Struct discord_game_sdk::LobbyTransaction
Lobby Transaction
Implementations
impl LobbyTransaction
[src]
pub fn new() -> Self
[src]
Gets a Lobby transaction used for creating or updating a new lobby.
GetLobbyCreateTransaction
in official docs
GetLobbyUpdateTransaction
in official docs
pub fn kind(&mut self, kind: LobbyKind) -> &mut Self
[src]
Marks the lobby as private or public
pub fn owner(&mut self, user_id: UserID) -> &mut Self
[src]
Sets the ID of the user owning the lobby
pub fn capacity(&mut self, capacity: u32) -> &mut Self
[src]
Sets the maximum amount of players that can join
pub fn add_metadata(&mut self, key: String, value: String) -> &mut Self
[src]
Set metadata value under a given key for the lobby
Performance
A nul byte will be appended to key
and value
if one is not present.
pub fn delete_metadata<S>(&mut self, key: String) -> &mut Self
[src]
Deletes metadata value under a given key for the lobby
Performance
A nul byte will be appended to key
if one is not present.
pub fn locked(&mut self, locked: bool) -> &mut Self
[src]
Sets whether the lobby is locked or not. When locked, new users cannot join
Trait Implementations
impl Clone for LobbyTransaction
[src]
fn clone(&self) -> LobbyTransaction
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for LobbyTransaction
[src]
impl Default for LobbyTransaction
[src]
fn default() -> LobbyTransaction
[src]
Auto Trait Implementations
impl RefUnwindSafe for LobbyTransaction
impl Send for LobbyTransaction
impl Sync for LobbyTransaction
impl Unpin for LobbyTransaction
impl UnwindSafe for LobbyTransaction
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,