google_maps 3.9.5

An unofficial Google Maps Platform client library for the Rust programming language.
Documentation
//! Contains the type of vehicle used on this line.

use crate::directions::vehicle_type::VehicleType;
use serde::{Deserialize, Serialize};

// -----------------------------------------------------------------------------
//
/// Contains the type of vehicle used on this line.
#[derive(Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize, Deserialize)]
pub struct TransitVehicle {
    /// Contains the URL for an icon associated with this vehicle type.
    pub icon: String,

    /// Contains the URL for the icon associated with this vehicle type, based
    /// on the local transport signage.
    #[serde(default)]
    pub local_icon: Option<String>,

    /// Contains the name of the vehicle on this line. eg. "Subway."
    pub name: String,

    /// Contains the type of vehicle that runs on this line. See the [Vehicle
    /// Type](https://developers.google.com/maps/documentation/directions/intro#VehicleType)
    /// documentation for a complete list of supported values.
    #[serde(alias = "type")]
    pub vehicle_type: VehicleType,
} // struct