pub struct Welcome {
pub server_name: String,
pub openttd_version: String,
pub is_dedicated: bool,
pub map_name: String,
pub map_seed: u32,
pub map_landscape: u8,
pub map_start_date: Date,
pub map_width: u16,
pub map_height: u16,
}
Expand description
Welcome a connected admin to the game.
Fields§
§server_name: String
Name of the Server (e.g. as advertised to master server).
openttd_version: String
OpenTTD version string.
is_dedicated: bool
Server is dedicated.
map_name: String
Name of the Map.
map_seed: u32
Random seed of the Map.
map_landscape: u8
Landscape of the Map.
map_start_date: Date
Start date of the Map.
map_width: u16
Map width.
map_height: u16
Map height.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Welcome
impl<'de> Deserialize<'de> for Welcome
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
impl Eq for Welcome
impl StructuralPartialEq for Welcome
Auto Trait Implementations§
impl Freeze for Welcome
impl RefUnwindSafe for Welcome
impl Send for Welcome
impl Sync for Welcome
impl Unpin for Welcome
impl UnwindSafe for Welcome
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