pub struct WriteData {
pub map: String,
pub author: User,
pub description: String,
pub save_time: DateTime<Utc>,
pub mods: Vec<String>,
pub brick_assets: Vec<String>,
pub colors: Vec<Color>,
pub materials: Vec<String>,
pub brick_owners: Vec<User>,
pub bricks: Vec<Brick>,
}
Expand description
Data written to save files by write_save
.
Fields§
§map: String
The name of the map that the save file was created on.
The user that created the save.
description: String
A short description of the save file.
save_time: DateTime<Utc>
When the save file was created.
mods: Vec<String>
The mods used by the save file. Format not yet defined.
brick_assets: Vec<String>
The name lookup table used by bricks. Example values include
"PB_DefaultBrick"
, "PB_DefaultTile"
, "B_1x_Octo_T"
, etc.
colors: Vec<Color>
The color lookup table used by bricks.
materials: Vec<String>
The material lookup table used by bricks. Common values include:
"BMC_Plastic"
"BMC_Glow"
"BMC_Metallic"
"BMC_Hologram"
brick_owners: Vec<User>
The brick owner lookup table used by bricks.
bricks: Vec<Brick>
All the bricks in the save file.
Auto Trait Implementations§
impl Freeze for WriteData
impl RefUnwindSafe for WriteData
impl Send for WriteData
impl Sync for WriteData
impl Unpin for WriteData
impl UnwindSafe for WriteData
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