pub struct StopConfig {
pub id: StopId,
pub name: String,
pub position: f64,
}Expand description
A stop at an arbitrary position along the elevator shaft.
Fields§
§id: StopIdThe unique identifier for this stop.
name: StringHuman-readable name for this stop.
position: f64Absolute position along the shaft axis (distance units from origin).
Trait Implementations§
Source§impl Clone for StopConfig
impl Clone for StopConfig
Source§fn clone(&self) -> StopConfig
fn clone(&self) -> StopConfig
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 StopConfig
impl Debug for StopConfig
Source§impl<'de> Deserialize<'de> for StopConfig
impl<'de> Deserialize<'de> for StopConfig
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 StopConfig
impl RefUnwindSafe for StopConfig
impl Send for StopConfig
impl Sync for StopConfig
impl Unpin for StopConfig
impl UnsafeUnpin for StopConfig
impl UnwindSafe for StopConfig
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