[][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 PartialEq<DefaultScalarValue> for DefaultScalarValue[src]

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 Debug for DefaultScalarValue[src]

impl Display for DefaultScalarValue[src]

impl Serialize for DefaultScalarValue[src]

Auto Trait Implementations

impl Send for DefaultScalarValue

impl Sync for DefaultScalarValue

Blanket Implementations

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

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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