Enum gtfs_server::models::api::search::ascdesc::AscDesc [−][src]
pub enum AscDesc { ASC, DESC, }
Variants
ASC
DESC
Methods
impl AscDesc
[src]
impl AscDesc
Trait Implementations
impl Clone for AscDesc
[src]
impl Clone for AscDesc
fn clone(&self) -> AscDesc
[src]
fn clone(&self) -> AscDesc
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 AscDesc
[src]
impl PartialEq for AscDesc
fn eq(&self, other: &AscDesc) -> bool
[src]
fn eq(&self, other: &AscDesc) -> 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<'v> FromFormValue<'v> for AscDesc
[src]
impl<'v> FromFormValue<'v> for AscDesc
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