pub struct AppVersionCreateSessionConfig {
pub kind: Kind,
pub sockets: i32,
pub autodeploy: Option<bool>,
pub empty_ttl: Option<i32>,
pub session_max_duration: Option<i32>,
}Fields§
§kind: KindThe kind of session to create. If ‘Default’ if chosen, the ‘session_config’ will be ignored. The kind of session must be: Default, Seat, Match
sockets: i32The number of game slots on each deployment of this app version.
autodeploy: Option<bool>If a deployment should be made autonomously if there is not enough sockets open on a new session.
empty_ttl: Option<i32>The number of minutes a deployment of this app version can spend with no session connected before being terminated.
session_max_duration: Option<i32>The number of minutes after a session-type deployment has been terminated to remove all the session information connected to your deployment. Minimum and default value is set to 60 minutes so you can manage your session termination before it is removed.
Implementations§
Source§impl AppVersionCreateSessionConfig
impl AppVersionCreateSessionConfig
pub fn new(kind: Kind, sockets: i32) -> AppVersionCreateSessionConfig
Trait Implementations§
Source§impl Clone for AppVersionCreateSessionConfig
impl Clone for AppVersionCreateSessionConfig
Source§fn clone(&self) -> AppVersionCreateSessionConfig
fn clone(&self) -> AppVersionCreateSessionConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for AppVersionCreateSessionConfig
impl Default for AppVersionCreateSessionConfig
Source§fn default() -> AppVersionCreateSessionConfig
fn default() -> AppVersionCreateSessionConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AppVersionCreateSessionConfig
impl<'de> Deserialize<'de> for AppVersionCreateSessionConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AppVersionCreateSessionConfig
impl PartialEq for AppVersionCreateSessionConfig
Source§fn eq(&self, other: &AppVersionCreateSessionConfig) -> bool
fn eq(&self, other: &AppVersionCreateSessionConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AppVersionCreateSessionConfig
Auto Trait Implementations§
impl Freeze for AppVersionCreateSessionConfig
impl RefUnwindSafe for AppVersionCreateSessionConfig
impl Send for AppVersionCreateSessionConfig
impl Sync for AppVersionCreateSessionConfig
impl Unpin for AppVersionCreateSessionConfig
impl UnwindSafe for AppVersionCreateSessionConfig
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
Mutably borrows from an owned value. Read more