#[repr(u8)]pub enum DistanceUint {
Kilometer = 0,
Mile = 1,
}Expand description
The unit of distance used (kilometer or mile)
Variants§
Trait Implementations§
Source§impl Clone for DistanceUint
impl Clone for DistanceUint
Source§fn clone(&self) -> DistanceUint
fn clone(&self) -> DistanceUint
Returns a duplicate of the value. Read more
1.0.0 · 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 DistanceUint
impl Debug for DistanceUint
Source§impl<'de> Deserialize<'de> for DistanceUint
impl<'de> Deserialize<'de> for DistanceUint
Source§fn 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
Source§impl Display for DistanceUint
impl Display for DistanceUint
Source§impl EnumType for DistanceUint
impl EnumType for DistanceUint
Source§fn items() -> &'static [EnumItem<DistanceUint>]
fn items() -> &'static [EnumItem<DistanceUint>]
Get a list of possible variants of the enum and their values.
Source§impl From<DistanceUint> for Value
impl From<DistanceUint> for Value
Source§fn from(value: DistanceUint) -> Value
fn from(value: DistanceUint) -> Value
Converts to this type from the input type.
Source§impl Hash for DistanceUint
impl Hash for DistanceUint
Source§impl InputType for DistanceUint
impl InputType for DistanceUint
Source§type RawValueType = DistanceUint
type RawValueType = DistanceUint
The raw type used for validator. Read more
Source§fn 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.
Source§fn parse(value: Option<Value>) -> InputValueResult<Self>
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from
Value. None represents undefined.Source§fn as_raw_value(&self) -> Option<&Self::RawValueType>
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
Source§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
Source§impl Ord for DistanceUint
impl Ord for DistanceUint
Source§fn cmp(&self, other: &DistanceUint) -> Ordering
fn cmp(&self, other: &DistanceUint) -> Ordering
1.21.0 · Source§fn 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
Source§impl OutputType for DistanceUint
impl OutputType for DistanceUint
Source§fn 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.
Source§fn resolve<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_: &'life1 ContextSelectionSet<'life2>,
_field: &'life3 Positioned<Field>,
) -> Pin<Box<dyn Future<Output = ServerResult<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn resolve<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_: &'life1 ContextSelectionSet<'life2>,
_field: &'life3 Positioned<Field>,
) -> Pin<Box<dyn Future<Output = ServerResult<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Resolve an output value to
async_graphql::Value.Source§fn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
Source§impl PartialEq for DistanceUint
impl PartialEq for DistanceUint
Source§impl PartialOrd for DistanceUint
impl PartialOrd for DistanceUint
Source§impl Serialize for DistanceUint
impl Serialize for DistanceUint
impl Copy for DistanceUint
impl Eq for DistanceUint
impl StructuralPartialEq for DistanceUint
Auto Trait Implementations§
impl Freeze for DistanceUint
impl RefUnwindSafe for DistanceUint
impl Send for DistanceUint
impl Sync for DistanceUint
impl Unpin for DistanceUint
impl UnwindSafe for DistanceUint
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.