Struct async_graphql::types::StringNumber [−][src]
string_number only.Expand description
A numeric value represented by a string.
Tuple Fields
0: TTrait Implementations
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
impl<T: Num + Display + Send + Sync> InputType for StringNumber<T> where
<T as Num>::FromStrRadixErr: Display,
impl<T: Num + Display + Send + Sync> InputType for StringNumber<T> where
<T as Num>::FromStrRadixErr: Display,
type RawValueType = Self
type RawValueType = Self
The raw type used for validator. Read more
Create type information in the registry and return qualified typename.
Parse from Value. None represents undefined.
Returns a reference to the raw value.
Qualified typename.
impl<T: Num + Display + Send + Sync> OutputType for StringNumber<T> where
<T as Num>::FromStrRadixErr: Display,
impl<T: Num + Display + Send + Sync> OutputType for StringNumber<T> where
<T as Num>::FromStrRadixErr: Display,
Create type information in the registry and return qualified typename.
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,
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.
Qualified typename.
Introspection type name Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
impl<T: Num + Display + Send + Sync> ScalarType for StringNumber<T> where
<T as Num>::FromStrRadixErr: Display,
impl<T: Num + Display + Send + Sync> ScalarType for StringNumber<T> where
<T as Num>::FromStrRadixErr: Display,
Auto Trait Implementations
impl<T> RefUnwindSafe for StringNumber<T> where
T: RefUnwindSafe,
impl<T> Send for StringNumber<T> where
T: Send,
impl<T> Sync for StringNumber<T> where
T: Sync,
impl<T> Unpin for StringNumber<T> where
T: Unpin,
impl<T> UnwindSafe for StringNumber<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
