#[repr(u8)]pub enum MeasurementSystem {
Metric = 0,
Imperial = 1,
}Expand description
The system of measurement in use
Variants§
Trait Implementations§
Source§impl Clone for MeasurementSystem
impl Clone for MeasurementSystem
Source§fn clone(&self) -> MeasurementSystem
fn clone(&self) -> MeasurementSystem
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 MeasurementSystem
impl Debug for MeasurementSystem
Source§impl<'de> Deserialize<'de> for MeasurementSystem
impl<'de> Deserialize<'de> for MeasurementSystem
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 MeasurementSystem
impl Display for MeasurementSystem
Source§impl EnumType for MeasurementSystem
impl EnumType for MeasurementSystem
Source§fn items() -> &'static [EnumItem<MeasurementSystem>]
fn items() -> &'static [EnumItem<MeasurementSystem>]
Get a list of possible variants of the enum and their values.
Source§impl From<MeasurementSystem> for Value
impl From<MeasurementSystem> for Value
Source§fn from(value: MeasurementSystem) -> Value
fn from(value: MeasurementSystem) -> Value
Converts to this type from the input type.
Source§impl Hash for MeasurementSystem
impl Hash for MeasurementSystem
Source§impl InputType for MeasurementSystem
impl InputType for MeasurementSystem
Source§type RawValueType = MeasurementSystem
type RawValueType = MeasurementSystem
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 MeasurementSystem
impl Ord for MeasurementSystem
Source§fn cmp(&self, other: &MeasurementSystem) -> Ordering
fn cmp(&self, other: &MeasurementSystem) -> 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 MeasurementSystem
impl OutputType for MeasurementSystem
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 MeasurementSystem
impl PartialEq for MeasurementSystem
Source§impl PartialOrd for MeasurementSystem
impl PartialOrd for MeasurementSystem
Source§impl Serialize for MeasurementSystem
impl Serialize for MeasurementSystem
impl Copy for MeasurementSystem
impl Eq for MeasurementSystem
impl StructuralPartialEq for MeasurementSystem
Auto Trait Implementations§
impl Freeze for MeasurementSystem
impl RefUnwindSafe for MeasurementSystem
impl Send for MeasurementSystem
impl Sync for MeasurementSystem
impl Unpin for MeasurementSystem
impl UnwindSafe for MeasurementSystem
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.