pub struct WorldData {Show 15 fields
pub data_version: i32,
pub difficulty: i32,
pub difficulty_locked: bool,
pub game_type: i32,
pub last_played: i64,
pub level_name: String,
pub player: Option<PlayerData>,
pub server_brands: Option<Vec<String>>,
pub spawn_angle: f32,
pub spawn_x: i32,
pub spawn_y: i32,
pub spawn_z: i32,
pub time: i64,
pub version: Version,
pub world_gen_settings: WorldGenSettings,
/* private fields */
}Expand description
Struct representing the world data.
Fields§
§data_version: i32§difficulty: i32§difficulty_locked: bool§game_type: i32§last_played: i64§level_name: String§player: Option<PlayerData>§server_brands: Option<Vec<String>>§spawn_angle: f32§spawn_x: i32§spawn_y: i32§spawn_z: i32§time: i64§version: Version§world_gen_settings: WorldGenSettingsImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WorldData
impl<'de> Deserialize<'de> for WorldData
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
Auto Trait Implementations§
impl Freeze for WorldData
impl RefUnwindSafe for WorldData
impl Send for WorldData
impl Sync for WorldData
impl Unpin for WorldData
impl UnwindSafe for WorldData
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