#[non_exhaustive]pub struct GameStatConfig {
pub record_id: Option<String>,
pub icon_id: Option<String>,
pub format: Option<GameStatFormatMethod>,
pub aggregation: Option<GameStatAggregationMethod>,
pub sorting: Option<GameStatSortingMethod>,
pub priority: Option<i32>,
pub display_name: Option<String>,
pub postfix_singular: Option<String>,
pub postfix_plural: Option<String>,
pub prefix_singular: Option<String>,
pub prefix_plural: Option<String>,
}Expand description
A game statistic config.
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.record_id: Option<String>A universally unique identifier.
icon_id: Option<String>A universally unique identifier.
format: Option<GameStatFormatMethod>A value denoting the format method of a game statistic.
aggregation: Option<GameStatAggregationMethod>A value denoting the aggregation method of a game statistic.
sorting: Option<GameStatSortingMethod>A value denoting the sorting method of a game statistic.
priority: Option<i32>Unsigned 32 bit integer.
display_name: Option<String>Represent a resource’s readable display name.
postfix_singular: Option<String>A string appended to the end of a singular game statistic’s value. Example: 1 dollar.
postfix_plural: Option<String>A string appended to the end of a game statistic’s value that is not exactly 1. Example: 45 dollars.
prefix_singular: Option<String>A string appended to the beginning of a singular game statistic’s value. Example: value 1.
prefix_plural: Option<String>A string prepended to the beginning of a game statistic’s value that is not exactly 1. Example: values 45.
Implementations§
Source§impl GameStatConfig
impl GameStatConfig
Sourcepub fn format(&self) -> Option<&GameStatFormatMethod>
pub fn format(&self) -> Option<&GameStatFormatMethod>
A value denoting the format method of a game statistic.
Sourcepub fn aggregation(&self) -> Option<&GameStatAggregationMethod>
pub fn aggregation(&self) -> Option<&GameStatAggregationMethod>
A value denoting the aggregation method of a game statistic.
Sourcepub fn sorting(&self) -> Option<&GameStatSortingMethod>
pub fn sorting(&self) -> Option<&GameStatSortingMethod>
A value denoting the sorting method of a game statistic.
Sourcepub fn display_name(&self) -> Option<&str>
pub fn display_name(&self) -> Option<&str>
Represent a resource’s readable display name.
Sourcepub fn postfix_singular(&self) -> Option<&str>
pub fn postfix_singular(&self) -> Option<&str>
A string appended to the end of a singular game statistic’s value. Example: 1 dollar.
Sourcepub fn postfix_plural(&self) -> Option<&str>
pub fn postfix_plural(&self) -> Option<&str>
A string appended to the end of a game statistic’s value that is not exactly 1. Example: 45 dollars.
Sourcepub fn prefix_singular(&self) -> Option<&str>
pub fn prefix_singular(&self) -> Option<&str>
A string appended to the beginning of a singular game statistic’s value. Example: value 1.
Sourcepub fn prefix_plural(&self) -> Option<&str>
pub fn prefix_plural(&self) -> Option<&str>
A string prepended to the beginning of a game statistic’s value that is not exactly 1. Example: values 45.
Source§impl GameStatConfig
impl GameStatConfig
Sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture GameStatConfig
Trait Implementations§
Source§impl Clone for GameStatConfig
impl Clone for GameStatConfig
Source§fn clone(&self) -> GameStatConfig
fn clone(&self) -> GameStatConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GameStatConfig
impl Debug for GameStatConfig
Source§impl PartialEq for GameStatConfig
impl PartialEq for GameStatConfig
Source§fn eq(&self, other: &GameStatConfig) -> bool
fn eq(&self, other: &GameStatConfig) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GameStatConfig
Auto Trait Implementations§
impl Freeze for GameStatConfig
impl RefUnwindSafe for GameStatConfig
impl Send for GameStatConfig
impl Sync for GameStatConfig
impl Unpin for GameStatConfig
impl UnsafeUnpin for GameStatConfig
impl UnwindSafe for GameStatConfig
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