Enum juniper::DefaultScalarValue[][src]

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serde visitor used to deserialize this scalar value

Convert the given scalar value into an integer value Read more

Convert the given scalar value into a float value Read more

Convert the given scalar value into a string value Read more

Represents this ScalarValue a String value. Read more

Converts this ScalarValue into a String value. Read more

Convert the given scalar value into a boolean value Read more

Converts this ScalarValue into another one.

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

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

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

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.