[−][src]Enum juniper::DefaultScalarValue
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 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>>,
Checks if the current value contains the a value of the current type Read more
impl PartialEq<DefaultScalarValue> for DefaultScalarValue
[src]
fn eq(&self, other: &DefaultScalarValue) -> bool
[src]
fn ne(&self, other: &DefaultScalarValue) -> bool
[src]
impl Clone for DefaultScalarValue
[src]
fn clone(&self) -> 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]
fn from(t: &'a DefaultScalarValue) -> Self
[src]
impl From<DefaultScalarValue> for Option<i32>
[src]
fn from(t: DefaultScalarValue) -> Self
[src]
impl From<f64> for DefaultScalarValue
[src]
impl<'a> From<&'a DefaultScalarValue> for Option<&'a f64>
[src]
fn from(t: &'a DefaultScalarValue) -> Self
[src]
impl From<DefaultScalarValue> for Option<f64>
[src]
fn from(t: DefaultScalarValue) -> Self
[src]
impl From<String> for DefaultScalarValue
[src]
impl<'a> From<&'a DefaultScalarValue> for Option<&'a String>
[src]
fn from(t: &'a DefaultScalarValue) -> Self
[src]
impl From<DefaultScalarValue> for Option<String>
[src]
fn from(t: DefaultScalarValue) -> Self
[src]
impl From<bool> for DefaultScalarValue
[src]
impl<'a> From<&'a DefaultScalarValue> for Option<&'a bool>
[src]
fn from(t: &'a DefaultScalarValue) -> Self
[src]
impl From<DefaultScalarValue> for Option<bool>
[src]
fn from(t: DefaultScalarValue) -> Self
[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]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,