pub struct CoachDeckLayout {
pub name: String,
pub dimension: Box<GridDimension>,
pub low_floor_entry: Option<Option<bool>>,
pub id: String,
pub deck_level: String,
pub place_groups: Option<Vec<PlaceGroup>>,
pub graphic_elements: Option<Vec<GraphicElement>>,
pub service_icons: Option<Vec<ServiceIcon>>,
}Expand description
CoachDeckLayout : A deck of a coach.
Fields§
§name: String§dimension: Box<GridDimension>§low_floor_entry: Option<Option<bool>>Typically set on the lowest deck. Empty if unknown.
id: String§deck_level: String§place_groups: Option<Vec<PlaceGroup>>Groups places. No place groups might exist for special coach types (e.g. traction units without seats).
graphic_elements: Option<Vec<GraphicElement>>§service_icons: Option<Vec<ServiceIcon>>Implementations§
Source§impl CoachDeckLayout
impl CoachDeckLayout
Sourcepub fn new(
name: String,
dimension: GridDimension,
id: String,
deck_level: String,
) -> CoachDeckLayout
pub fn new( name: String, dimension: GridDimension, id: String, deck_level: String, ) -> CoachDeckLayout
A deck of a coach.
Trait Implementations§
Source§impl Clone for CoachDeckLayout
impl Clone for CoachDeckLayout
Source§fn clone(&self) -> CoachDeckLayout
fn clone(&self) -> CoachDeckLayout
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 CoachDeckLayout
impl Debug for CoachDeckLayout
Source§impl Default for CoachDeckLayout
impl Default for CoachDeckLayout
Source§fn default() -> CoachDeckLayout
fn default() -> CoachDeckLayout
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CoachDeckLayout
impl<'de> Deserialize<'de> for CoachDeckLayout
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 CoachDeckLayout
impl PartialEq for CoachDeckLayout
Source§impl Serialize for CoachDeckLayout
impl Serialize for CoachDeckLayout
impl StructuralPartialEq for CoachDeckLayout
Auto Trait Implementations§
impl Freeze for CoachDeckLayout
impl RefUnwindSafe for CoachDeckLayout
impl Send for CoachDeckLayout
impl Sync for CoachDeckLayout
impl Unpin for CoachDeckLayout
impl UnwindSafe for CoachDeckLayout
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