Struct cobble_core::minecraft::SaveGame
source · pub struct SaveGame {
pub name: String,
pub path: PathBuf,
pub difficulty: Option<Difficulty>,
pub game_type: GameType,
pub game_version: Option<String>,
pub seed: Option<i64>,
pub last_played: OffsetDateTime,
}
Expand description
Represents a single save game.
Fields
name: String
Name of the save game
path: PathBuf
Path to the save game
difficulty: Option<Difficulty>
Difficulty of the save game. No value means the difficulty is globally set (older versions).
game_type: GameType
Game type for new players
game_version: Option<String>
Game version the save game was last saved in
seed: Option<i64>
The seed of the save game
last_played: OffsetDateTime
Last played timestamp
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for SaveGame
impl<'de> Deserialize<'de> for SaveGame
sourcefn 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 RefUnwindSafe for SaveGame
impl Send for SaveGame
impl Sync for SaveGame
impl Unpin for SaveGame
impl UnwindSafe for SaveGame
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more