pub struct Build {
pub shape: String,
pub at: [f32; 3],
pub yaw: f32,
pub r: f32,
pub w: f32,
pub d: f32,
pub h: f32,
pub material: String,
pub solid: bool,
pub name: String,
}Expand description
One piece of built geometry — the browser draws it from a primitive.
Fields§
§shape: Stringdisc (a round floor) · slab (a rectangular floor) · box (walls,
copings, lintels, plinths) · cylinder (posts, drums).
at: [f32; 3]§yaw: f32Facing, degrees — a wall segment is a box turned tangent to its ring.
r: f32Radius (disc / cylinder).
w: f32§d: f32§h: f32§material: StringWhich palette material: stone · wood · metal · accent, or a
literal colour "r g b".
solid: boolBlocks walking. Floors are solid; copings and trim usually are not.
name: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for Build
impl<'de> Deserialize<'de> for Build
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
impl StructuralPartialEq for Build
Auto Trait Implementations§
impl Freeze for Build
impl RefUnwindSafe for Build
impl Send for Build
impl Sync for Build
impl Unpin for Build
impl UnsafeUnpin for Build
impl UnwindSafe for Build
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