[][src]Enum juniper::DefaultScalarValue

pub enum DefaultScalarValue {
    Int(i32),
    Float(f64),
    String(String),
    Boolean(bool),
}

The default scalar value representation in juniper

This types closely follows the graphql specification.

Variants

Int(i32)Float(f64)String(String)Boolean(bool)

Trait Implementations

impl ScalarValue for DefaultScalarValue[src]

type Visitor = DefaultScalarValueVisitor

Serde visitor used to deserialize this scalar value

fn is_type<'a, T>(&'a self) -> bool where
    T: 'a,
    &'a Self: Into<Option<&'a T>>, 
[src]

Checks if the current value contains the a value of the current type Read more

impl Clone for DefaultScalarValue[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl From<i32> for DefaultScalarValue[src]

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

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

impl From<f64> for DefaultScalarValue[src]

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

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

impl From<String> for DefaultScalarValue[src]

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

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

impl From<bool> for DefaultScalarValue[src]

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

impl From<DefaultScalarValue> for Option<bool>[src]

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

impl PartialEq<DefaultScalarValue> for DefaultScalarValue[src]

impl Debug for DefaultScalarValue[src]

impl Display for DefaultScalarValue[src]

impl Serialize for DefaultScalarValue[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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