pub struct CoachLayout {
pub id: String,
pub summary: Option<Option<String>>,
pub places: Option<Vec<CoachLayoutPlace>>,
pub signs: Option<Vec<CoachLayoutSign>>,
pub internals: Option<Vec<CoachLayoutInternal>>,
pub directed_internals: Option<Vec<CoachLayoutDirectedInternal>>,
pub compartment_numbers: Option<Vec<CoachLayoutCompartmentNumber>>,
pub grid_size: Box<CoachLayoutGridSize>,
pub _links: Option<Vec<Link>>,
}Expand description
CoachLayout : coach layout providing data to draw a coach layout. The items of a coach are located via coordinates with (0,0) in the upper left corner. All coordinates are given without sign.
Fields§
§id: Stringid of this coachLayout on this server
summary: Option<Option<String>>A human-readable description of the coach layout.
places: Option<Vec<CoachLayoutPlace>>list of places included in the layout
signs: Option<Vec<CoachLayoutSign>>§internals: Option<Vec<CoachLayoutInternal>>§directed_internals: Option<Vec<CoachLayoutDirectedInternal>>§compartment_numbers: Option<Vec<CoachLayoutCompartmentNumber>>§grid_size: Box<CoachLayoutGridSize>§_links: Option<Vec<Link>>Java Property Name: ‘links’
Implementations§
Source§impl CoachLayout
impl CoachLayout
Sourcepub fn new(id: String, grid_size: CoachLayoutGridSize) -> CoachLayout
pub fn new(id: String, grid_size: CoachLayoutGridSize) -> CoachLayout
coach layout providing data to draw a coach layout. The items of a coach are located via coordinates with (0,0) in the upper left corner. All coordinates are given without sign.
Trait Implementations§
Source§impl Clone for CoachLayout
impl Clone for CoachLayout
Source§fn clone(&self) -> CoachLayout
fn clone(&self) -> CoachLayout
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 CoachLayout
impl Debug for CoachLayout
Source§impl Default for CoachLayout
impl Default for CoachLayout
Source§fn default() -> CoachLayout
fn default() -> CoachLayout
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CoachLayout
impl<'de> Deserialize<'de> for CoachLayout
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 CoachLayout
impl PartialEq for CoachLayout
Source§impl Serialize for CoachLayout
impl Serialize for CoachLayout
impl StructuralPartialEq for CoachLayout
Auto Trait Implementations§
impl Freeze for CoachLayout
impl RefUnwindSafe for CoachLayout
impl Send for CoachLayout
impl Sync for CoachLayout
impl Unpin for CoachLayout
impl UnwindSafe for CoachLayout
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