#[non_exhaustive]pub struct RegionInfo {
pub region_id: Option<String>,
pub provider_display_name: Option<String>,
pub region_display_name: Option<String>,
pub datacenter_coord: Option<Coord>,
pub datacenter_distance_from_client: Option<Distance>,
}Expand description
A region that the player can connect to.
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.region_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.
provider_display_name: Option<String>A universally unique identifier.
region_display_name: Option<String>A universally unique identifier.
datacenter_coord: Option<Coord>Geographical coordinates for a location on Planet Earth.
datacenter_distance_from_client: Option<Distance>Distance available in multiple units.
Implementations§
Source§impl RegionInfo
impl RegionInfo
Sourcepub fn region_id(&self) -> Option<&str>
pub fn region_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 provider_display_name(&self) -> Option<&str>
pub fn provider_display_name(&self) -> Option<&str>
A universally unique identifier.
Sourcepub fn region_display_name(&self) -> Option<&str>
pub fn region_display_name(&self) -> Option<&str>
A universally unique identifier.
Sourcepub fn datacenter_coord(&self) -> Option<&Coord>
pub fn datacenter_coord(&self) -> Option<&Coord>
Geographical coordinates for a location on Planet Earth.
Sourcepub fn datacenter_distance_from_client(&self) -> Option<&Distance>
pub fn datacenter_distance_from_client(&self) -> Option<&Distance>
Distance available in multiple units.
Source§impl RegionInfo
impl RegionInfo
Sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture RegionInfo
Trait Implementations§
Source§impl Clone for RegionInfo
impl Clone for RegionInfo
Source§fn clone(&self) -> RegionInfo
fn clone(&self) -> RegionInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RegionInfo
impl Debug for RegionInfo
Source§impl PartialEq for RegionInfo
impl PartialEq for RegionInfo
impl StructuralPartialEq for RegionInfo
Auto Trait Implementations§
impl Freeze for RegionInfo
impl RefUnwindSafe for RegionInfo
impl Send for RegionInfo
impl Sync for RegionInfo
impl Unpin for RegionInfo
impl UnwindSafe for RegionInfo
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