Struct google_maps::directions::response::transit_line::TransitLine [−][src]
pub struct TransitLine { pub name: Option<String>, pub short_name: Option<String>, pub color: Option<String>, pub agencies: Vec<TransitAgency>, pub url: Option<String>, pub icon: Option<String>, pub text_color: Option<String>, pub vehicle: TransitVehicle, }
Expand description
Contains the type of vehicle used on this line.
Fields
name: Option<String>
Contains the full name of this transit line. eg. “7 Avenue Express”
short_name: Option<String>
Contains the short name of this transit line. This will normally be a line number, such as “M7” or “355”.
color: Option<String>
Contains the color commonly used in signage for this transit line. The color will be specified as a hex string such as: #FF0033.
agencies: Vec<TransitAgency>
An array containing a single TransitAgency
object. The TransitAgency
object provides information about the operator of the line
url: Option<String>
Contains the URL for this transit line as provided by the transit agency.
icon: Option<String>
Contains the URL for the icon associated with this line.
text_color: Option<String>
Contains the color of text commonly used for signage of this line. The color will be specified as a hex string.
vehicle: TransitVehicle
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for TransitLine
impl Send for TransitLine
impl Sync for TransitLine
impl Unpin for TransitLine
impl UnwindSafe for TransitLine
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V