pub enum DepartureTime {
Now,
Timestamp(i64),
Iso8601(String),
}Expand description
Typed departure time for routing, matching, and isoline requests.
Replaces fragile Option<String> guessing with an explicit enum.
Serializes as a plain string for backward compatibility.
Variants§
Now
Depart now.
Timestamp(i64)
Unix timestamp in seconds.
Iso8601(String)
ISO 8601 formatted date/time string.
Trait Implementations§
Source§impl Clone for DepartureTime
impl Clone for DepartureTime
Source§fn clone(&self) -> DepartureTime
fn clone(&self) -> DepartureTime
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DepartureTime
impl Debug for DepartureTime
Source§impl<'de> Deserialize<'de> for DepartureTime
impl<'de> Deserialize<'de> for DepartureTime
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DepartureTime
impl Display for DepartureTime
Source§impl PartialEq for DepartureTime
impl PartialEq for DepartureTime
Source§impl Serialize for DepartureTime
impl Serialize for DepartureTime
impl StructuralPartialEq for DepartureTime
Auto Trait Implementations§
impl Freeze for DepartureTime
impl RefUnwindSafe for DepartureTime
impl Send for DepartureTime
impl Sync for DepartureTime
impl Unpin for DepartureTime
impl UnsafeUnpin for DepartureTime
impl UnwindSafe for DepartureTime
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.