#[non_exhaustive]pub struct GameHandle {
pub game_id: Option<String>,
pub name_id: Option<String>,
pub display_name: Option<String>,
pub logo_url: Option<String>,
pub banner_url: Option<String>,
}
Expand description
A game handle.
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_id: Option<String>
A universally unique identifier.
name_id: Option<String>
A human readable short identifier used to references resources. Different than a rivet.common#Uuid
because this is intended to be human readable. Different than rivet.common#DisplayName
because this should not include special characters and be short.
display_name: Option<String>
Represent a resource’s readable display name.
logo_url: Option<String>
The URL of this game’s logo image.
The URL of this game’s banner image.
Implementations§
Source§impl GameHandle
impl GameHandle
Sourcepub fn name_id(&self) -> Option<&str>
pub fn name_id(&self) -> Option<&str>
A human readable short identifier used to references resources. Different than a rivet.common#Uuid
because this is intended to be human readable. Different than rivet.common#DisplayName
because this should not include special characters and be short.
Sourcepub fn display_name(&self) -> Option<&str>
pub fn display_name(&self) -> Option<&str>
Represent a resource’s readable display name.
The URL of this game’s banner image.
Source§impl GameHandle
impl GameHandle
Sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture GameHandle
Trait Implementations§
Source§impl Clone for GameHandle
impl Clone for GameHandle
Source§fn clone(&self) -> GameHandle
fn clone(&self) -> GameHandle
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for GameHandle
impl Debug for GameHandle
Source§impl PartialEq for GameHandle
impl PartialEq for GameHandle
impl StructuralPartialEq for GameHandle
Auto Trait Implementations§
impl Freeze for GameHandle
impl RefUnwindSafe for GameHandle
impl Send for GameHandle
impl Sync for GameHandle
impl Unpin for GameHandle
impl UnwindSafe for GameHandle
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