pub struct GameConfig {
pub map_name: Option<String>,
pub disable_fog: bool,
pub random_seed: Option<u32>,
pub realtime: bool,
pub allowed_interfaces: AllowedInterfaces,
}
Fields§
§map_name: Option<String>
§disable_fog: bool
§random_seed: Option<u32>
§realtime: bool
§allowed_interfaces: AllowedInterfaces
These interfaces are allowed for the client
Trait Implementations§
Source§impl Clone for GameConfig
impl Clone for GameConfig
Source§fn clone(&self) -> GameConfig
fn clone(&self) -> GameConfig
Returns a copy 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 Debug for GameConfig
impl Debug for GameConfig
Source§impl Default for GameConfig
impl Default for GameConfig
Source§impl<'de> Deserialize<'de> for GameConfig
impl<'de> Deserialize<'de> for GameConfig
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 GameConfig
impl PartialEq for GameConfig
Source§impl Serialize for GameConfig
impl Serialize for GameConfig
impl StructuralPartialEq for GameConfig
Auto Trait Implementations§
impl Freeze for GameConfig
impl RefUnwindSafe for GameConfig
impl Send for GameConfig
impl Sync for GameConfig
impl Unpin for GameConfig
impl UnwindSafe for GameConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)