[][src]Enum wundergraph::scalar::WundergraphScalarValue

pub enum WundergraphScalarValue {
    SmallInt(i16),
    Int(i32),
    BigInt(i64),
    Float(f32),
    Double(f64),
    String(String),
    Boolean(bool),
}

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]

impl Debug for WundergraphScalarValue[src]

impl Display for WundergraphScalarValue[src]

impl<'a> From<&'a WundergraphScalarValue> for Option<&'a i16>[src]

impl<'a> From<&'a WundergraphScalarValue> for Option<&'a i32>[src]

impl<'a> From<&'a WundergraphScalarValue> for Option<&'a i64>[src]

impl<'a> From<&'a WundergraphScalarValue> for Option<&'a f32>[src]

impl<'a> From<&'a WundergraphScalarValue> for Option<&'a f64>[src]

impl<'a> From<&'a WundergraphScalarValue> for Option<&'a String>[src]

impl<'a> From<&'a WundergraphScalarValue> for Option<&'a bool>[src]

impl<'a> From<&'a str> for WundergraphScalarValue[src]

impl From<String> for WundergraphScalarValue[src]

impl From<WundergraphScalarValue> for Option<i16>[src]

impl From<WundergraphScalarValue> for Option<i32>[src]

impl From<WundergraphScalarValue> for Option<i64>[src]

impl From<WundergraphScalarValue> for Option<f32>[src]

impl From<WundergraphScalarValue> for Option<f64>[src]

impl From<WundergraphScalarValue> for Option<String>[src]

impl From<WundergraphScalarValue> for Option<bool>[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

impl FromInputValue<WundergraphScalarValue> for i16

impl FromInputValue<WundergraphScalarValue> for f32

impl<T, C> FromInputValue<WundergraphScalarValue> for FilterOption<T, C> where
    T: FilterValue<C>,
    Self: InnerFilter
[src]

impl<F, T> FromInputValue<WundergraphScalarValue> for Filter<F, T> where
    F: InnerFilter
[src]

impl<R, T> FromInputValue<WundergraphScalarValue> for HasOne<R, T> where
    R: FromInputValue<WundergraphScalarValue>, 
[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

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

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

impl GraphQLType<WundergraphScalarValue> for DeletedCount where
    &'__b WundergraphScalarValue: ScalarRefValue<'__b>, 
[src]

type Context = ()

The expected context type for this GraphQL type Read more

type TypeInfo = ()

Type that may carry additional schema information Read more

impl<T, C> GraphQLType<WundergraphScalarValue> for FilterOption<T, C> where
    T: FilterValue<C>,
    T: GraphQLType<WundergraphScalarValue>,
    Self: InnerFilter<Context = T::Context> + Nameable
[src]

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

impl<F, T> GraphQLType<WundergraphScalarValue> for Filter<F, T> where
    F: InnerFilter
[src]

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

impl ParseScalarValue<WundergraphScalarValue> for i64

impl ParseScalarValue<WundergraphScalarValue> for i16

impl ParseScalarValue<WundergraphScalarValue> for f32

impl PartialEq<WundergraphScalarValue> for WundergraphScalarValue[src]

impl ScalarValue for WundergraphScalarValue[src]

type Visitor = WundergraphScalarVisitor

Serde visitor used to deserialize this scalar value

impl Serialize for WundergraphScalarValue[src]

impl StructuralPartialEq for WundergraphScalarValue[src]

impl ToInputValue<WundergraphScalarValue> for i64

impl ToInputValue<WundergraphScalarValue> for i16

impl ToInputValue<WundergraphScalarValue> for f32

impl<T, C> ToInputValue<WundergraphScalarValue> for FilterOption<T, C> where
    T: FilterValue<C>,
    Self: InnerFilter
[src]

impl<F, T> ToInputValue<WundergraphScalarValue> for Filter<F, T> where
    F: InnerFilter
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoSql for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.