Struct WriteData

Source
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.

§author: User

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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.