pub struct CoachLayoutPlace {
pub icon: String,
pub number: String,
pub direction: Option<DirectionType>,
pub remark_id: Option<String>,
pub coords: Box<LayoutCoordinates>,
}Fields§
§icon: StringValues from the Graphics Items Code List
number: Stringplace number as displayed physically on the place
direction: Option<DirectionType>§remark_id: Option<String>Remark concerning the place (e.g. to be used in a tool tip). Code list according to UIC90918-1 Known Values: - MIGHT_HAVE_TABLE: place might have a table - MIGHT_NOT_HAVE_TABLE: table at the place might be missing - MIGHT_HAVE_DIFFERENT_DIRECTION: place might have a different direction - MIGHT_HAVE_TABLE_AND_DIFFERENT_DIRECTION: place might have a table and a different direction - MIGHT_NOT_HAVE_TABLE_AND_MIGHT_HAVE_DIFFERENT_DIRECTION: table at the place might be missing and place might have a different direction - MIGHT_BE_IN_COMPARTMENT: place might be in compartment - MIGHT_BE_IN_OPEN_SPACE: place might be in open space
coords: Box<LayoutCoordinates>Implementations§
Source§impl CoachLayoutPlace
impl CoachLayoutPlace
pub fn new( icon: String, number: String, coords: LayoutCoordinates, ) -> CoachLayoutPlace
Trait Implementations§
Source§impl Clone for CoachLayoutPlace
impl Clone for CoachLayoutPlace
Source§fn clone(&self) -> CoachLayoutPlace
fn clone(&self) -> CoachLayoutPlace
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 CoachLayoutPlace
impl Debug for CoachLayoutPlace
Source§impl Default for CoachLayoutPlace
impl Default for CoachLayoutPlace
Source§fn default() -> CoachLayoutPlace
fn default() -> CoachLayoutPlace
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CoachLayoutPlace
impl<'de> Deserialize<'de> for CoachLayoutPlace
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 CoachLayoutPlace
impl PartialEq for CoachLayoutPlace
Source§impl Serialize for CoachLayoutPlace
impl Serialize for CoachLayoutPlace
impl StructuralPartialEq for CoachLayoutPlace
Auto Trait Implementations§
impl Freeze for CoachLayoutPlace
impl RefUnwindSafe for CoachLayoutPlace
impl Send for CoachLayoutPlace
impl Sync for CoachLayoutPlace
impl Unpin for CoachLayoutPlace
impl UnwindSafe for CoachLayoutPlace
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