pub struct BuildingConfig {
pub name: String,
pub stops: Vec<StopConfig>,
pub lines: Option<Vec<LineConfig>>,
pub groups: Option<Vec<GroupConfig>>,
}Expand description
Building layout.
Fields§
§name: StringHuman-readable building name, displayed in UIs and logs.
stops: Vec<StopConfig>Ordered list of stops in the building.
Must contain at least one stop. Each stop has a unique StopId and
an arbitrary position along the shaft axis. Positions need not be
uniformly spaced — this enables buildings, skyscrapers, and space
elevators with varying inter-stop distances.
lines: Option<Vec<LineConfig>>Lines (physical paths). If None, auto-inferred from the flat
elevator list on SimConfig.
groups: Option<Vec<GroupConfig>>Dispatch groups. If None, auto-inferred (single group with all lines).
Trait Implementations§
Source§impl Clone for BuildingConfig
impl Clone for BuildingConfig
Source§fn clone(&self) -> BuildingConfig
fn clone(&self) -> BuildingConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 BuildingConfig
impl Debug for BuildingConfig
Source§impl<'de> Deserialize<'de> for BuildingConfig
impl<'de> Deserialize<'de> for BuildingConfig
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
Auto Trait Implementations§
impl Freeze for BuildingConfig
impl RefUnwindSafe for BuildingConfig
impl Send for BuildingConfig
impl Sync for BuildingConfig
impl Unpin for BuildingConfig
impl UnsafeUnpin for BuildingConfig
impl UnwindSafe for BuildingConfig
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