[][src]Struct brs::WriteData

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>,
}

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

impl Send for WriteData

impl Sync for WriteData

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.