#[non_exhaustive]pub struct ResourceCreationLimitPolicy {
pub new_game_sessions_per_creator: Option<i32>,
pub policy_period_in_minutes: Option<i32>,
}
Expand description
A policy that puts limits on the number of game sessions that a player can create within a specified span of time. With this policy, you can control players' ability to consume available resources.
The policy is evaluated when a player tries to create a new game session. On receiving a CreateGameSession
request, Amazon GameLift checks that the player (identified by CreatorId
) has created fewer than game session limit in the specified time period.
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.new_game_sessions_per_creator: Option<i32>
A policy that puts limits on the number of game sessions that a player can create within a specified span of time. With this policy, you can control players' ability to consume available resources.
The policy is evaluated when a player tries to create a new game session. On receiving a CreateGameSession
request, Amazon GameLift checks that the player (identified by CreatorId
) has created fewer than game session limit in the specified time period.
policy_period_in_minutes: Option<i32>
The time span used in evaluating the resource creation limit policy.
Implementations§
source§impl ResourceCreationLimitPolicy
impl ResourceCreationLimitPolicy
sourcepub fn new_game_sessions_per_creator(&self) -> Option<i32>
pub fn new_game_sessions_per_creator(&self) -> Option<i32>
A policy that puts limits on the number of game sessions that a player can create within a specified span of time. With this policy, you can control players' ability to consume available resources.
The policy is evaluated when a player tries to create a new game session. On receiving a CreateGameSession
request, Amazon GameLift checks that the player (identified by CreatorId
) has created fewer than game session limit in the specified time period.
sourcepub fn policy_period_in_minutes(&self) -> Option<i32>
pub fn policy_period_in_minutes(&self) -> Option<i32>
The time span used in evaluating the resource creation limit policy.
source§impl ResourceCreationLimitPolicy
impl ResourceCreationLimitPolicy
sourcepub fn builder() -> ResourceCreationLimitPolicyBuilder
pub fn builder() -> ResourceCreationLimitPolicyBuilder
Creates a new builder-style object to manufacture ResourceCreationLimitPolicy
.
Trait Implementations§
source§impl Clone for ResourceCreationLimitPolicy
impl Clone for ResourceCreationLimitPolicy
source§fn clone(&self) -> ResourceCreationLimitPolicy
fn clone(&self) -> ResourceCreationLimitPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResourceCreationLimitPolicy
impl Debug for ResourceCreationLimitPolicy
source§impl PartialEq for ResourceCreationLimitPolicy
impl PartialEq for ResourceCreationLimitPolicy
source§fn eq(&self, other: &ResourceCreationLimitPolicy) -> bool
fn eq(&self, other: &ResourceCreationLimitPolicy) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ResourceCreationLimitPolicy
Auto Trait Implementations§
impl Freeze for ResourceCreationLimitPolicy
impl RefUnwindSafe for ResourceCreationLimitPolicy
impl Send for ResourceCreationLimitPolicy
impl Sync for ResourceCreationLimitPolicy
impl Unpin for ResourceCreationLimitPolicy
impl UnwindSafe for ResourceCreationLimitPolicy
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> 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