Enum juniper::DefaultScalarValue [−][src]
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
impl Clone for DefaultScalarValue
[src]
impl Clone for DefaultScalarValue
[src]fn clone(&self) -> DefaultScalarValue
[src]
fn clone(&self) -> DefaultScalarValue
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for DefaultScalarValue
[src]
impl Debug for DefaultScalarValue
[src]impl Display for DefaultScalarValue
[src]
impl Display for DefaultScalarValue
[src]impl<'a> From<&'a str> for DefaultScalarValue
[src]
impl<'a> From<&'a str> for DefaultScalarValue
[src]impl From<String> for DefaultScalarValue
[src]
impl From<String> for DefaultScalarValue
[src]impl PartialEq<DefaultScalarValue> for DefaultScalarValue
[src]
impl PartialEq<DefaultScalarValue> for DefaultScalarValue
[src]fn eq(&self, other: &DefaultScalarValue) -> bool
[src]
fn eq(&self, other: &DefaultScalarValue) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &DefaultScalarValue) -> bool
[src]
fn ne(&self, other: &DefaultScalarValue) -> bool
[src]This method tests for !=
.
impl ScalarValue for DefaultScalarValue
[src]
impl ScalarValue for DefaultScalarValue
[src]type Visitor = DefaultScalarValueVisitor
type Visitor = DefaultScalarValueVisitor
Serde visitor used to deserialize this scalar value
fn into_string(self) -> Option<String>
[src]
fn into_string(self) -> Option<String>
[src]Converts this ScalarValue
into a String
value. Read more
fn as_boolean(&self) -> Option<bool>
[src]
fn as_boolean(&self) -> Option<bool>
[src]Convert the given scalar value into a boolean value Read more
fn into_another<S: ScalarValue>(self) -> S
[src]
fn into_another<S: ScalarValue>(self) -> S
[src]Converts this ScalarValue
into another one.
impl Serialize for DefaultScalarValue
[src]
impl Serialize for DefaultScalarValue
[src]impl StructuralPartialEq for DefaultScalarValue
[src]
Auto Trait Implementations
impl RefUnwindSafe for DefaultScalarValue
impl Send for DefaultScalarValue
impl Sync for DefaultScalarValue
impl Unpin for DefaultScalarValue
impl UnwindSafe for DefaultScalarValue
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,