Struct rivet_matchmaker::model::RegionInfo
source · [−]#[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 universally unique identifier.
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
sourceimpl RegionInfo
impl RegionInfo
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.
sourceimpl RegionInfo
impl RegionInfo
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture RegionInfo
Trait Implementations
sourceimpl Clone for RegionInfo
impl Clone for RegionInfo
sourcefn clone(&self) -> RegionInfo
fn clone(&self) -> RegionInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RegionInfo
impl Debug for RegionInfo
sourceimpl PartialEq<RegionInfo> for RegionInfo
impl PartialEq<RegionInfo> for RegionInfo
sourcefn eq(&self, other: &RegionInfo) -> bool
fn eq(&self, other: &RegionInfo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RegionInfo) -> bool
fn ne(&self, other: &RegionInfo) -> bool
This method tests for !=
.
impl StructuralPartialEq for RegionInfo
Auto Trait Implementations
impl RefUnwindSafe for RegionInfo
impl Send for RegionInfo
impl Sync for RegionInfo
impl Unpin for RegionInfo
impl UnwindSafe for RegionInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more