pub struct LineConfig {
pub id: u32,
pub name: String,
pub serves: Vec<StopId>,
pub elevators: Vec<ElevatorConfig>,
pub orientation: Orientation,
pub position: Option<FloorPosition>,
pub min_position: Option<f64>,
pub max_position: Option<f64>,
pub max_cars: Option<usize>,
}Expand description
Configuration for a single line (physical path).
A line represents a shaft, tether, track, or other physical pathway
that one or more elevator cars travel along. Lines belong to a
GroupConfig for dispatch purposes.
Fields§
§id: u32Unique line identifier (within the config).
name: StringHuman-readable name.
serves: Vec<StopId>Stops served by this line (references StopConfig::id).
elevators: Vec<ElevatorConfig>Elevators on this line.
orientation: OrientationPhysical orientation (defaults to Vertical).
position: Option<FloorPosition>Optional floor-plan position.
min_position: Option<f64>Lowest reachable position (auto-computed from stops if None).
max_position: Option<f64>Highest reachable position (auto-computed from stops if None).
max_cars: Option<usize>Max cars on this line (None = unlimited).
Trait Implementations§
Source§impl Clone for LineConfig
impl Clone for LineConfig
Source§fn clone(&self) -> LineConfig
fn clone(&self) -> LineConfig
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 LineConfig
impl Debug for LineConfig
Source§impl Default for LineConfig
impl Default for LineConfig
Source§fn default() -> LineConfig
fn default() -> LineConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LineConfig
impl<'de> Deserialize<'de> for LineConfig
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 LineConfig
impl RefUnwindSafe for LineConfig
impl Send for LineConfig
impl Sync for LineConfig
impl Unpin for LineConfig
impl UnsafeUnpin for LineConfig
impl UnwindSafe for LineConfig
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