[−][src]Enum wundergraph::scalar::WundergraphScalarValue
This enum is used as scalar value representation for juniper.
Main usecase here is to represent some more scalar values correctly, especially several integer types.
See their documentation for motivation and details
Variants
SmallInt(i16)
Represents a 16 bit integer
Int(i32)
Represents a 32 bit integer
BigInt(i64)
Represents a 64 bit integer
Float(f32)
Represents a 32 bit floating point number
Double(f64)
Represents a 64 bit floating point number
String(String)
Represents a string scalar value
Boolean(bool)
Represents a boolean scalar value
Trait Implementations
impl Clone for WundergraphScalarValue
[src]
fn clone(&self) -> WundergraphScalarValue
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for WundergraphScalarValue
[src]
impl Display for WundergraphScalarValue
[src]
impl<'a> From<&'a WundergraphScalarValue> for Option<&'a i16>
[src]
fn from(t: &'a WundergraphScalarValue) -> Self
[src]
impl<'a> From<&'a WundergraphScalarValue> for Option<&'a i32>
[src]
fn from(t: &'a WundergraphScalarValue) -> Self
[src]
impl<'a> From<&'a WundergraphScalarValue> for Option<&'a i64>
[src]
fn from(t: &'a WundergraphScalarValue) -> Self
[src]
impl<'a> From<&'a WundergraphScalarValue> for Option<&'a f32>
[src]
fn from(t: &'a WundergraphScalarValue) -> Self
[src]
impl<'a> From<&'a WundergraphScalarValue> for Option<&'a f64>
[src]
fn from(t: &'a WundergraphScalarValue) -> Self
[src]
impl<'a> From<&'a WundergraphScalarValue> for Option<&'a String>
[src]
fn from(t: &'a WundergraphScalarValue) -> Self
[src]
impl<'a> From<&'a WundergraphScalarValue> for Option<&'a bool>
[src]
fn from(t: &'a WundergraphScalarValue) -> Self
[src]
impl<'a> From<&'a str> for WundergraphScalarValue
[src]
impl From<String> for WundergraphScalarValue
[src]
impl From<WundergraphScalarValue> for Option<i16>
[src]
fn from(t: WundergraphScalarValue) -> Self
[src]
impl From<WundergraphScalarValue> for Option<i32>
[src]
fn from(t: WundergraphScalarValue) -> Self
[src]
impl From<WundergraphScalarValue> for Option<i64>
[src]
fn from(t: WundergraphScalarValue) -> Self
[src]
impl From<WundergraphScalarValue> for Option<f32>
[src]
fn from(t: WundergraphScalarValue) -> Self
[src]
impl From<WundergraphScalarValue> for Option<f64>
[src]
fn from(t: WundergraphScalarValue) -> Self
[src]
impl From<WundergraphScalarValue> for Option<String>
[src]
fn from(t: WundergraphScalarValue) -> Self
[src]
impl From<WundergraphScalarValue> for Option<bool>
[src]
fn from(t: WundergraphScalarValue) -> Self
[src]
impl From<bool> for WundergraphScalarValue
[src]
impl From<f32> for WundergraphScalarValue
[src]
impl From<f64> for WundergraphScalarValue
[src]
impl From<i16> for WundergraphScalarValue
[src]
impl From<i32> for WundergraphScalarValue
[src]
impl From<i64> for WundergraphScalarValue
[src]
impl FromInputValue<WundergraphScalarValue> for i64
fn from_input_value(v: &InputValue<WundergraphScalarValue>) -> Option<i64>
impl FromInputValue<WundergraphScalarValue> for i16
fn from_input_value(v: &InputValue<WundergraphScalarValue>) -> Option<i16>
impl FromInputValue<WundergraphScalarValue> for f32
fn from_input_value(v: &InputValue<WundergraphScalarValue>) -> Option<f32>
impl<T, C> FromInputValue<WundergraphScalarValue> for FilterOption<T, C> where
T: FilterValue<C>,
Self: InnerFilter,
[src]
T: FilterValue<C>,
Self: InnerFilter,
fn from_input_value(v: &InputValue<WundergraphScalarValue>) -> Option<Self>
[src]
impl<F, T> FromInputValue<WundergraphScalarValue> for Filter<F, T> where
F: InnerFilter,
[src]
F: InnerFilter,
fn from_input_value(v: &InputValue<WundergraphScalarValue>) -> Option<Self>
[src]
impl<R, T> FromInputValue<WundergraphScalarValue> for HasOne<R, T> where
R: FromInputValue<WundergraphScalarValue>,
[src]
R: FromInputValue<WundergraphScalarValue>,
fn from_input_value(v: &InputValue<WundergraphScalarValue>) -> Option<Self>
[src]
impl GraphQLType<WundergraphScalarValue> for i64
type Context = ()
The expected context type for this GraphQL type Read more
type TypeInfo = ()
Type that may carry additional schema information Read more
fn name(_: &Self::TypeInfo) -> Option<&str>
fn meta<'r>(
info: &Self::TypeInfo,
registry: &mut Registry<'r, WundergraphScalarValue>
) -> MetaType<'r, WundergraphScalarValue> where
&'__b WundergraphScalarValue: ScalarRefValue<'__b>,
WundergraphScalarValue: 'r,
info: &Self::TypeInfo,
registry: &mut Registry<'r, WundergraphScalarValue>
) -> MetaType<'r, WundergraphScalarValue> where
&'__b WundergraphScalarValue: ScalarRefValue<'__b>,
WundergraphScalarValue: 'r,
fn resolve(
&self,
_: &(),
_: Option<&[Selection<WundergraphScalarValue>]>,
_: &Executor<Self::Context, WundergraphScalarValue>
) -> Value<WundergraphScalarValue>
&self,
_: &(),
_: Option<&[Selection<WundergraphScalarValue>]>,
_: &Executor<Self::Context, WundergraphScalarValue>
) -> Value<WundergraphScalarValue>
fn resolve_field(
&self,
info: &Self::TypeInfo,
field_name: &str,
arguments: &Arguments<S>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
[src]
&self,
info: &Self::TypeInfo,
field_name: &str,
arguments: &Arguments<S>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
fn resolve_into_type(
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
[src]
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
fn concrete_type_name(
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
[src]
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
impl GraphQLType<WundergraphScalarValue> for i16
type Context = ()
The expected context type for this GraphQL type Read more
type TypeInfo = ()
Type that may carry additional schema information Read more
fn name(_: &Self::TypeInfo) -> Option<&str>
fn meta<'r>(
info: &Self::TypeInfo,
registry: &mut Registry<'r, WundergraphScalarValue>
) -> MetaType<'r, WundergraphScalarValue> where
&'__b WundergraphScalarValue: ScalarRefValue<'__b>,
WundergraphScalarValue: 'r,
info: &Self::TypeInfo,
registry: &mut Registry<'r, WundergraphScalarValue>
) -> MetaType<'r, WundergraphScalarValue> where
&'__b WundergraphScalarValue: ScalarRefValue<'__b>,
WundergraphScalarValue: 'r,
fn resolve(
&self,
_: &(),
_: Option<&[Selection<WundergraphScalarValue>]>,
_: &Executor<Self::Context, WundergraphScalarValue>
) -> Value<WundergraphScalarValue>
&self,
_: &(),
_: Option<&[Selection<WundergraphScalarValue>]>,
_: &Executor<Self::Context, WundergraphScalarValue>
) -> Value<WundergraphScalarValue>
fn resolve_field(
&self,
info: &Self::TypeInfo,
field_name: &str,
arguments: &Arguments<S>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
[src]
&self,
info: &Self::TypeInfo,
field_name: &str,
arguments: &Arguments<S>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
fn resolve_into_type(
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
[src]
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
fn concrete_type_name(
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
[src]
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
impl GraphQLType<WundergraphScalarValue> for f32
type Context = ()
The expected context type for this GraphQL type Read more
type TypeInfo = ()
Type that may carry additional schema information Read more
fn name(_: &Self::TypeInfo) -> Option<&str>
fn meta<'r>(
info: &Self::TypeInfo,
registry: &mut Registry<'r, WundergraphScalarValue>
) -> MetaType<'r, WundergraphScalarValue> where
&'__b WundergraphScalarValue: ScalarRefValue<'__b>,
WundergraphScalarValue: 'r,
info: &Self::TypeInfo,
registry: &mut Registry<'r, WundergraphScalarValue>
) -> MetaType<'r, WundergraphScalarValue> where
&'__b WundergraphScalarValue: ScalarRefValue<'__b>,
WundergraphScalarValue: 'r,
fn resolve(
&self,
_: &(),
_: Option<&[Selection<WundergraphScalarValue>]>,
_: &Executor<Self::Context, WundergraphScalarValue>
) -> Value<WundergraphScalarValue>
&self,
_: &(),
_: Option<&[Selection<WundergraphScalarValue>]>,
_: &Executor<Self::Context, WundergraphScalarValue>
) -> Value<WundergraphScalarValue>
fn resolve_field(
&self,
info: &Self::TypeInfo,
field_name: &str,
arguments: &Arguments<S>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
[src]
&self,
info: &Self::TypeInfo,
field_name: &str,
arguments: &Arguments<S>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
fn resolve_into_type(
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
[src]
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
fn concrete_type_name(
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
[src]
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
impl GraphQLType<WundergraphScalarValue> for DeletedCount where
&'__b WundergraphScalarValue: ScalarRefValue<'__b>,
[src]
&'__b WundergraphScalarValue: ScalarRefValue<'__b>,
type Context = ()
The expected context type for this GraphQL type Read more
type TypeInfo = ()
Type that may carry additional schema information Read more
fn name(_: &Self::TypeInfo) -> Option<&str>
[src]
fn meta<'r>(
info: &Self::TypeInfo,
registry: &mut Registry<'r, WundergraphScalarValue>
) -> MetaType<'r, WundergraphScalarValue> where
WundergraphScalarValue: 'r,
&'z WundergraphScalarValue: ScalarRefValue<'z>,
[src]
info: &Self::TypeInfo,
registry: &mut Registry<'r, WundergraphScalarValue>
) -> MetaType<'r, WundergraphScalarValue> where
WundergraphScalarValue: 'r,
&'z WundergraphScalarValue: ScalarRefValue<'z>,
fn resolve_field(
&self,
_info: &(),
field: &str,
args: &Arguments<WundergraphScalarValue>,
executor: &Executor<Self::Context, WundergraphScalarValue>
) -> ExecutionResult<WundergraphScalarValue>
[src]
&self,
_info: &(),
field: &str,
args: &Arguments<WundergraphScalarValue>,
executor: &Executor<Self::Context, WundergraphScalarValue>
) -> ExecutionResult<WundergraphScalarValue>
fn concrete_type_name(&self, _: &Self::Context, _: &Self::TypeInfo) -> String
[src]
fn resolve_into_type(
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
[src]
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
fn resolve(
&self,
info: &Self::TypeInfo,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Value<S>
[src]
&self,
info: &Self::TypeInfo,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Value<S>
impl<T, C> GraphQLType<WundergraphScalarValue> for FilterOption<T, C> where
T: FilterValue<C>,
T: GraphQLType<WundergraphScalarValue>,
Self: InnerFilter<Context = T::Context> + Nameable,
[src]
T: FilterValue<C>,
T: GraphQLType<WundergraphScalarValue>,
Self: InnerFilter<Context = T::Context> + Nameable,
type Context = T::Context
The expected context type for this GraphQL type Read more
type TypeInfo = NameBuilder<Self>
Type that may carry additional schema information Read more
fn name(info: &Self::TypeInfo) -> Option<&str>
[src]
fn meta<'r>(
info: &Self::TypeInfo,
registry: &mut Registry<'r, WundergraphScalarValue>
) -> MetaType<'r, WundergraphScalarValue> where
WundergraphScalarValue: 'r,
[src]
info: &Self::TypeInfo,
registry: &mut Registry<'r, WundergraphScalarValue>
) -> MetaType<'r, WundergraphScalarValue> where
WundergraphScalarValue: 'r,
fn resolve_field(
&self,
info: &Self::TypeInfo,
field_name: &str,
arguments: &Arguments<S>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
[src]
&self,
info: &Self::TypeInfo,
field_name: &str,
arguments: &Arguments<S>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
fn resolve_into_type(
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
[src]
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
fn concrete_type_name(
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
[src]
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
fn resolve(
&self,
info: &Self::TypeInfo,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Value<S>
[src]
&self,
info: &Self::TypeInfo,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Value<S>
impl<F, T> GraphQLType<WundergraphScalarValue> for Filter<F, T> where
F: InnerFilter,
[src]
F: InnerFilter,
type Context = F::Context
The expected context type for this GraphQL type Read more
type TypeInfo = NameBuilder<Self>
Type that may carry additional schema information Read more
fn name(info: &Self::TypeInfo) -> Option<&str>
[src]
fn meta<'r>(
info: &Self::TypeInfo,
registry: &mut Registry<'r, WundergraphScalarValue>
) -> MetaType<'r, WundergraphScalarValue> where
WundergraphScalarValue: 'r,
[src]
info: &Self::TypeInfo,
registry: &mut Registry<'r, WundergraphScalarValue>
) -> MetaType<'r, WundergraphScalarValue> where
WundergraphScalarValue: 'r,
fn resolve_field(
&self,
info: &Self::TypeInfo,
field_name: &str,
arguments: &Arguments<S>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
[src]
&self,
info: &Self::TypeInfo,
field_name: &str,
arguments: &Arguments<S>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
fn resolve_into_type(
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
[src]
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
fn concrete_type_name(
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
[src]
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
fn resolve(
&self,
info: &Self::TypeInfo,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Value<S>
[src]
&self,
info: &Self::TypeInfo,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Value<S>
impl ParseScalarValue<WundergraphScalarValue> for i64
fn from_str<'a>(
value: ScalarToken<'a>
) -> ParseScalarResult<'a, WundergraphScalarValue>
value: ScalarToken<'a>
) -> ParseScalarResult<'a, WundergraphScalarValue>
impl ParseScalarValue<WundergraphScalarValue> for i16
fn from_str<'a>(
value: ScalarToken<'a>
) -> ParseScalarResult<'a, WundergraphScalarValue>
value: ScalarToken<'a>
) -> ParseScalarResult<'a, WundergraphScalarValue>
impl ParseScalarValue<WundergraphScalarValue> for f32
fn from_str<'a>(
value: ScalarToken<'a>
) -> ParseScalarResult<'a, WundergraphScalarValue>
value: ScalarToken<'a>
) -> ParseScalarResult<'a, WundergraphScalarValue>
impl PartialEq<WundergraphScalarValue> for WundergraphScalarValue
[src]
fn eq(&self, other: &WundergraphScalarValue) -> bool
[src]
fn ne(&self, other: &WundergraphScalarValue) -> bool
[src]
impl ScalarValue for WundergraphScalarValue
[src]
type Visitor = WundergraphScalarVisitor
Serde visitor used to deserialize this scalar value
fn as_int(&self) -> Option<i32>
[src]
fn as_string(&self) -> Option<String>
[src]
fn as_float(&self) -> Option<f64>
[src]
fn as_boolean(&self) -> Option<bool>
[src]
fn is_type<'a, T>(&'a self) -> bool where
T: 'a,
&'a Self: Into<Option<&'a T>>,
[src]
T: 'a,
&'a Self: Into<Option<&'a T>>,
impl Serialize for WundergraphScalarValue
[src]
impl StructuralPartialEq for WundergraphScalarValue
[src]
impl ToInputValue<WundergraphScalarValue> for i64
fn to_input_value(&self) -> InputValue<WundergraphScalarValue>
impl ToInputValue<WundergraphScalarValue> for i16
fn to_input_value(&self) -> InputValue<WundergraphScalarValue>
impl ToInputValue<WundergraphScalarValue> for f32
fn to_input_value(&self) -> InputValue<WundergraphScalarValue>
impl<T, C> ToInputValue<WundergraphScalarValue> for FilterOption<T, C> where
T: FilterValue<C>,
Self: InnerFilter,
[src]
T: FilterValue<C>,
Self: InnerFilter,
fn to_input_value(&self) -> InputValue<WundergraphScalarValue>
[src]
impl<F, T> ToInputValue<WundergraphScalarValue> for Filter<F, T> where
F: InnerFilter,
[src]
F: InnerFilter,
fn to_input_value(&self) -> InputValue<WundergraphScalarValue>
[src]
Auto Trait Implementations
impl RefUnwindSafe for WundergraphScalarValue
impl Send for WundergraphScalarValue
impl Sync for WundergraphScalarValue
impl Unpin for WundergraphScalarValue
impl UnwindSafe for WundergraphScalarValue
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoSql for T
[src]
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]
&'a Self: AsExpression<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,