pub struct GroupConfig {
pub id: u32,
pub name: String,
pub lines: Vec<u32>,
pub dispatch: BuiltinStrategy,
pub reposition: Option<BuiltinReposition>,
}Expand description
Configuration for an elevator dispatch group.
A group is the logical dispatch unit containing one or more lines.
All elevators within the group share a single BuiltinStrategy.
Fields§
§id: u32Unique group identifier.
name: StringHuman-readable name.
lines: Vec<u32>Line IDs belonging to this group (references LineConfig::id).
dispatch: BuiltinStrategyDispatch strategy for this group.
reposition: Option<BuiltinReposition>Optional repositioning strategy for idle elevators.
When None, idle elevators in this group stay where they stopped.
Trait Implementations§
Source§impl Clone for GroupConfig
impl Clone for GroupConfig
Source§fn clone(&self) -> GroupConfig
fn clone(&self) -> GroupConfig
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 GroupConfig
impl Debug for GroupConfig
Source§impl<'de> Deserialize<'de> for GroupConfig
impl<'de> Deserialize<'de> for GroupConfig
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 GroupConfig
impl RefUnwindSafe for GroupConfig
impl Send for GroupConfig
impl Sync for GroupConfig
impl Unpin for GroupConfig
impl UnsafeUnpin for GroupConfig
impl UnwindSafe for GroupConfig
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