[−][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>>,
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 Clone for DefaultScalarValue
[src]
fn clone(&self) -> DefaultScalarValue
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<DefaultScalarValue> for DefaultScalarValue
[src]
fn eq(&self, other: &DefaultScalarValue) -> bool
[src]
fn ne(&self, other: &DefaultScalarValue) -> bool
[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
impl Unpin for DefaultScalarValue
impl RefUnwindSafe for DefaultScalarValue
impl UnwindSafe for DefaultScalarValue
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,