[][src]Enum google_maps::directions::request::departure_time::DepartureTime

pub enum DepartureTime {
    Now,
    At(PrimitiveDateTime),
}

The desired departure time for the route. The departure time must be set to the current time or some time in the future. It cannot be in the past.

Variants

Now

You can specify a value of now, which sets the departure time to the current time (correct to the nearest second).

Specifies the desired time of departure.

Methods

impl DepartureTime[src]

pub fn source_code_print(&self) -> String[src]

Converts a DepartureTime enum to a String that contains a pretty source-code-style departure time code for debugging.

Trait Implementations

impl Clone for DepartureTime[src]

impl Debug for DepartureTime[src]

impl<'_> From<&'_ DepartureTime> for String[src]

fn from(departure_time: &DepartureTime) -> String[src]

Converts a DepartureTime enum to a String that contains a departure time.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.