pub struct BookingOption {Show 18 fields
pub evse_uid: Option<CiString<36>>,
pub connector_id: Option<CiString<36>>,
pub parking_id: Option<CiString<36>>,
pub evse_position: Vec<EvsePosition>,
pub vehicle_types: Vec<VehicleType>,
pub connector_format: Vec<ConnectorFormat>,
pub connector_types: Vec<ConnectorType>,
pub power_types: Vec<PowerType>,
pub max_vehicle_weight: Option<Number>,
pub max_vehicle_height: Option<Number>,
pub max_vehicle_length: Option<Number>,
pub max_vehicle_width: Option<Number>,
pub min_parking_space_length: Option<Number>,
pub min_parking_space_width: Option<Number>,
pub dangerous_goods_allowed: Option<bool>,
pub drive_through: Option<bool>,
pub refrigeration_outlet: Option<bool>,
pub extensions: Extensions,
}bookings and v2_3_0 only.Expand description
What a driver can book at a Location.
Spec: 2.3.0-bookings §mod_bookings_booking_option_class
Fields§
§evse_uid: Option<CiString<36>>A bookable EVSE.uid. May be #NA when no EVSE is assigned yet.
connector_id: Option<CiString<36>>Connector.id where the booking will happen.
parking_id: Option<CiString<36>>Reference to a Parking.id.
evse_position: Vec<EvsePosition>The position of the EVSE relative to the parking space.
vehicle_types: Vec<VehicleType>The vehicle types the parking accommodates.
connector_format: Vec<ConnectorFormat>The connector formats available.
connector_types: Vec<ConnectorType>The connector types available.
power_types: Vec<PowerType>The power types available.
max_vehicle_weight: Option<Number>Maximum vehicle weight, in kilograms.
max_vehicle_height: Option<Number>Maximum vehicle height, in centimetres.
max_vehicle_length: Option<Number>Maximum vehicle length, in centimetres.
max_vehicle_width: Option<Number>Maximum vehicle width, in centimetres.
min_parking_space_length: Option<Number>Minimum length of the parking space, in centimetres.
min_parking_space_width: Option<Number>Minimum width of the parking space, in centimetres.
dangerous_goods_allowed: Option<bool>Whether vehicles loaded with dangerous substances may park.
drive_through: Option<bool>Whether a vehicle can charge without reversing into or out of the space.
refrigeration_outlet: Option<bool>Whether a refrigeration outlet is available.
extensions: ExtensionsUndocumented JSON fields, preserved verbatim.
Implementations§
Source§impl BookingOption
impl BookingOption
Sourcepub fn builder() -> BookingOptionBuilder
pub fn builder() -> BookingOptionBuilder
Create an instance of BookingOption using the builder syntax
Trait Implementations§
Source§impl Clone for BookingOption
impl Clone for BookingOption
Source§fn clone(&self) -> BookingOption
fn clone(&self) -> BookingOption
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BookingOption
impl Debug for BookingOption
Source§impl Default for BookingOption
impl Default for BookingOption
Source§fn default() -> BookingOption
fn default() -> BookingOption
Source§impl<'de> Deserialize<'de> for BookingOption
impl<'de> Deserialize<'de> for BookingOption
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>,
Source§impl JsonSchema for BookingOption
impl JsonSchema for BookingOption
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more