Enum gtfs_server::models::api::sort::tripsort::TripSort [−][src]
pub enum TripSort { ArrivalTime, DepartureTime, DirectionId, ServiceId, RouteId, Uid, None, }
Variants
ArrivalTime
DepartureTime
DirectionId
ServiceId
RouteId
Uid
None
Trait Implementations
impl Clone for TripSort
[src]
impl Clone for TripSort
fn clone(&self) -> TripSort
[src]
fn clone(&self) -> TripSort
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for TripSort
[src]
impl PartialEq for TripSort
fn eq(&self, other: &TripSort) -> bool
[src]
fn eq(&self, other: &TripSort) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl<'f> FromFormValue<'f> for TripSort
[src]
impl<'f> FromFormValue<'f> for TripSort
type Error = ()
The associated error which can be returned from parsing. It is a good idea to have the return type be or contain an &'v str
so that the unparseable string can be examined after a bad parse. Read more
fn from_form_value(form_value: &RawStr) -> Result<Self, Self::Error>
[src]
fn from_form_value(form_value: &RawStr) -> Result<Self, Self::Error>
Parses an instance of Self
from an HTTP form field value or returns an Error
if one cannot be parsed. Read more
fn default() -> Option<Self>
[src]
fn default() -> Option<Self>
Returns a default value to be used when the form field does not exist. If this returns None
, then the field is required. Otherwise, this should return Some(default_value)
. The default implementation simply returns None
. Read more