[−][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<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<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> 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]
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>
Resolve the value of a single field on this type. Read more
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>
Resolve this interface or union into a concrete type Read more
fn concrete_type_name(
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
[src]
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
Return the concrete type name for this instance/union. Read more
impl PartialEq<ID> for ID
[src]
impl Clone for ID
[src]
fn clone(&self) -> ID
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<String> for ID
[src]
impl Eq for ID
[src]
impl Debug for ID
[src]
impl Deref for ID
[src]
Auto Trait Implementations
Blanket Implementations
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,
fn get_type_id(&self) -> TypeId
[src]
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,