pub struct BuildingView {
pub id: String,
pub label: String,
pub x: f32,
pub y: f32,
pub width_m: f32,
pub depth_m: f32,
pub interior_blueprint: Option<String>,
pub tags: Vec<String>,
pub market_boundary_zone_ids: Vec<String>,
pub market_max_volume: Option<f32>,
pub wall_set: Option<String>,
pub roof_set: Option<String>,
}Fields§
§id: String§label: String§x: f32§y: f32§width_m: f32§depth_m: f32§interior_blueprint: Option<String>§market_boundary_zone_ids: Vec<String>Boundary zones this market hall participates in (plans/10).
market_max_volume: Option<f32>Escrow capacity when tagged market. None → server default.
wall_set: Option<String>Wall art set id (schemas/gfx-sprites.schema.json wall_set). None → classic_stone
(legacy building.wall_h/wall_v/wall_corner/door_open/door_closed sprites).
roof_set: Option<String>Roof art set id (forge roof_set output_stem). None → classic_stone.
Implementations§
Source§impl BuildingView
impl BuildingView
pub fn effective_wall_set(&self) -> &str
pub fn effective_roof_set(&self) -> &str
Trait Implementations§
Source§impl Clone for BuildingView
impl Clone for BuildingView
Source§fn clone(&self) -> BuildingView
fn clone(&self) -> BuildingView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BuildingView
impl Debug for BuildingView
Source§impl<'de> Deserialize<'de> for BuildingView
impl<'de> Deserialize<'de> for BuildingView
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
Source§impl PartialEq for BuildingView
impl PartialEq for BuildingView
Source§impl Serialize for BuildingView
impl Serialize for BuildingView
impl StructuralPartialEq for BuildingView
Auto Trait Implementations§
impl Freeze for BuildingView
impl RefUnwindSafe for BuildingView
impl Send for BuildingView
impl Sync for BuildingView
impl Unpin for BuildingView
impl UnsafeUnpin for BuildingView
impl UnwindSafe for BuildingView
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