Struct rivet_identity::model::game_stat_config::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for GameStatConfig
Implementations
sourceimpl Builder
impl Builder
sourcepub fn set_record_id(self, input: Option<String>) -> Self
pub fn set_record_id(self, input: Option<String>) -> Self
A universally unique identifier.
sourcepub fn set_icon_id(self, input: Option<String>) -> Self
pub fn set_icon_id(self, input: Option<String>) -> Self
A universally unique identifier.
sourcepub fn format(self, input: GameStatFormatMethod) -> Self
pub fn format(self, input: GameStatFormatMethod) -> Self
A value denoting the format method of a game statistic.
sourcepub fn set_format(self, input: Option<GameStatFormatMethod>) -> Self
pub fn set_format(self, input: Option<GameStatFormatMethod>) -> Self
A value denoting the format method of a game statistic.
sourcepub fn aggregation(self, input: GameStatAggregationMethod) -> Self
pub fn aggregation(self, input: GameStatAggregationMethod) -> Self
A value denoting the aggregation method of a game statistic.
sourcepub fn set_aggregation(self, input: Option<GameStatAggregationMethod>) -> Self
pub fn set_aggregation(self, input: Option<GameStatAggregationMethod>) -> Self
A value denoting the aggregation method of a game statistic.
sourcepub fn sorting(self, input: GameStatSortingMethod) -> Self
pub fn sorting(self, input: GameStatSortingMethod) -> Self
A value denoting the sorting method of a game statistic.
sourcepub fn set_sorting(self, input: Option<GameStatSortingMethod>) -> Self
pub fn set_sorting(self, input: Option<GameStatSortingMethod>) -> Self
A value denoting the sorting method of a game statistic.
sourcepub fn set_priority(self, input: Option<i32>) -> Self
pub fn set_priority(self, input: Option<i32>) -> Self
Unsigned 32 bit integer.
sourcepub fn display_name(self, input: impl Into<String>) -> Self
pub fn display_name(self, input: impl Into<String>) -> Self
Represent a resource’s readable display name.
sourcepub fn set_display_name(self, input: Option<String>) -> Self
pub fn set_display_name(self, input: Option<String>) -> Self
Represent a resource’s readable display name.
sourcepub fn postfix_singular(self, input: impl Into<String>) -> Self
pub fn postfix_singular(self, input: impl Into<String>) -> Self
A string appended to the end of a singular game statistic’s value. Example: 1 dollar.
sourcepub fn set_postfix_singular(self, input: Option<String>) -> Self
pub fn set_postfix_singular(self, input: Option<String>) -> Self
A string appended to the end of a singular game statistic’s value. Example: 1 dollar.
sourcepub fn postfix_plural(self, input: impl Into<String>) -> Self
pub fn postfix_plural(self, input: impl Into<String>) -> Self
A string appended to the end of a game statistic’s value that is not exactly 1. Example: 45 dollars.
sourcepub fn set_postfix_plural(self, input: Option<String>) -> Self
pub fn set_postfix_plural(self, input: Option<String>) -> Self
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, input: impl Into<String>) -> Self
pub fn prefix_singular(self, input: impl Into<String>) -> Self
A string appended to the beginning of a singular game statistic’s value. Example: value 1.
sourcepub fn set_prefix_singular(self, input: Option<String>) -> Self
pub fn set_prefix_singular(self, input: Option<String>) -> Self
A string appended to the beginning of a singular game statistic’s value. Example: value 1.
sourcepub fn prefix_plural(self, input: impl Into<String>) -> Self
pub fn prefix_plural(self, input: impl Into<String>) -> Self
A string prepended to the beginning of a game statistic’s value that is not exactly 1. Example: values 45.
sourcepub fn set_prefix_plural(self, input: Option<String>) -> Self
pub fn set_prefix_plural(self, input: Option<String>) -> Self
A string prepended to the beginning of a game statistic’s value that is not exactly 1. Example: values 45.
sourcepub fn build(self) -> GameStatConfig
pub fn build(self) -> GameStatConfig
Consumes the builder and constructs a GameStatConfig
Trait Implementations
sourceimpl PartialEq<Builder> for Builder
impl PartialEq<Builder> for Builder
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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