Enum countires::DrivingSide
source · #[repr(u8)]
pub enum DrivingSide {
Left,
Right,
}Expand description
Driving side
Variants
Left
Left-hand side
Right
Right-hand side
Trait Implementations
sourceimpl Clone for DrivingSide
impl Clone for DrivingSide
sourcefn clone(&self) -> DrivingSide
fn clone(&self) -> DrivingSide
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for DrivingSide
impl Debug for DrivingSide
sourceimpl<'de> Deserialize<'de> for DrivingSide
impl<'de> Deserialize<'de> for DrivingSide
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for DrivingSide
impl Display for DrivingSide
sourceimpl EnumType for DrivingSide
impl EnumType for DrivingSide
sourcefn items() -> &'static [EnumItem<DrivingSide>]
fn items() -> &'static [EnumItem<DrivingSide>]
Get a list of possible variants of the enum and their values.
sourceimpl From<DrivingSide> for Value
impl From<DrivingSide> for Value
sourcefn from(value: DrivingSide) -> Value
fn from(value: DrivingSide) -> Value
Converts to this type from the input type.
sourceimpl Hash for DrivingSide
impl Hash for DrivingSide
sourceimpl InputType for DrivingSide
impl InputType for DrivingSide
type RawValueType = DrivingSide
type RawValueType = DrivingSide
The raw type used for validator. Read more
sourcefn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
sourcefn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from
Value. None represents undefined.sourcefn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
sourcefn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
sourceimpl Ord for DrivingSide
impl Ord for DrivingSide
sourcefn cmp(&self, other: &DrivingSide) -> Ordering
fn cmp(&self, other: &DrivingSide) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl OutputType for DrivingSide
impl OutputType for DrivingSide
sourcefn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
sourcefn resolve<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
__arg1: &'life1 ContextSelectionSet<'life2>,
_field: &'life3 Positioned<Field>
) -> Pin<Box<dyn Future<Output = ServerResult<Value>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
fn resolve<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
__arg1: &'life1 ContextSelectionSet<'life2>,
_field: &'life3 Positioned<Field>
) -> Pin<Box<dyn Future<Output = ServerResult<Value>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
Resolve an output value to
async_graphql::Value.sourcefn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
sourcefn introspection_type_name(&self) -> Cow<'static, str>
fn introspection_type_name(&self) -> Cow<'static, str>
Introspection type name Read more
sourceimpl PartialEq<DrivingSide> for DrivingSide
impl PartialEq<DrivingSide> for DrivingSide
sourcefn eq(&self, other: &DrivingSide) -> bool
fn eq(&self, other: &DrivingSide) -> bool
sourceimpl PartialOrd<DrivingSide> for DrivingSide
impl PartialOrd<DrivingSide> for DrivingSide
sourcefn partial_cmp(&self, other: &DrivingSide) -> Option<Ordering>
fn partial_cmp(&self, other: &DrivingSide) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresourceimpl Serialize for DrivingSide
impl Serialize for DrivingSide
impl Copy for DrivingSide
impl Eq for DrivingSide
impl StructuralEq for DrivingSide
impl StructuralPartialEq for DrivingSide
Auto Trait Implementations
impl RefUnwindSafe for DrivingSide
impl Send for DrivingSide
impl Sync for DrivingSide
impl Unpin for DrivingSide
impl UnwindSafe for DrivingSide
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.