[−][src]Struct juniper::ID
An ID as defined by the GraphQL specification
Represented as a string, but can be converted to from an integer as well.
Methods
impl ID
[src]
pub fn new<S: Into<String>>(value: S) -> Self
[src]
Construct a new ID from anything implementing Into<String>
Trait Implementations
impl Clone for ID
[src]
impl Debug for ID
[src]
impl Deref for ID
[src]
impl<'de> Deserialize<'de> for ID
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for ID
[src]
impl From<String> for ID
[src]
impl<S> FromInputValue<S> for ID where
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
[src]
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
fn from_input_value(v: &InputValue<S>) -> Option<ID>
[src]
impl<S> GraphQLType<S> for ID where
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
[src]
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
type Context = ()
The expected context type for this GraphQL type Read more
type TypeInfo = ()
Type that may carry additional schema information Read more
fn name(_: &Self::TypeInfo) -> Option<&str>
[src]
fn meta<'r>(
info: &Self::TypeInfo,
registry: &mut Registry<'r, S>
) -> MetaType<'r, S> where
&'__b S: ScalarRefValue<'__b>,
S: 'r,
[src]
info: &Self::TypeInfo,
registry: &mut Registry<'r, S>
) -> MetaType<'r, S> where
&'__b S: ScalarRefValue<'__b>,
S: 'r,
fn resolve(
&self,
_: &(),
_: Option<&[Selection<S>]>,
_: &Executor<Self::Context, S>
) -> Value<S>
[src]
&self,
_: &(),
_: Option<&[Selection<S>]>,
_: &Executor<Self::Context, S>
) -> Value<S>
fn resolve_field(
&self,
info: &Self::TypeInfo,
field_name: &str,
arguments: &Arguments<S>,
executor: &Executor<Self::Context, S>
) -> ExecutionResult<S>
[src]
&self,
info: &Self::TypeInfo,
field_name: &str,
arguments: &Arguments<S>,
executor: &Executor<Self::Context, S>
) -> ExecutionResult<S>
fn resolve_into_type(
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> ExecutionResult<S>
[src]
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> ExecutionResult<S>
fn concrete_type_name(
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
[src]
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
impl<S> ParseScalarValue<S> for ID where
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
[src]
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
fn from_str<'a>(value: ScalarToken<'a>) -> ParseScalarResult<'a, S>
[src]
impl PartialEq<ID> for ID
[src]
impl Serialize for ID
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for ID
[src]
impl StructuralPartialEq for ID
[src]
impl<S> ToInputValue<S> for ID where
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
[src]
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
fn to_input_value(&self) -> InputValue<S>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
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, 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>,