Struct juniper::ID
[−]
[src]
pub struct ID(_);
An ID as defined by the GraphQL specification
Represented as a string, but can be converted to from an integer as well.
Trait Implementations
impl<CtxT> GraphQLType<CtxT> for ID
[src]
fn name() -> Option<&'static str>
The name of the GraphQL type to expose. Read more
fn meta(registry: &mut Registry<CtxT>) -> MetaType
The meta type representing this GraphQL type.
fn resolve(&self, _: Option<Vec<Selection>>, _: &mut Executor<CtxT>) -> Value
Resolve the provided selection set against the current object. Read more
fn resolve_field(&self,
field_name: &str,
arguments: &Arguments,
executor: &mut Executor<CtxT>)
-> ExecutionResult
field_name: &str,
arguments: &Arguments,
executor: &mut Executor<CtxT>)
-> ExecutionResult
Resolve the value of a single field on this type. Read more
fn resolve_into_type(&self,
type_name: &str,
selection_set: Option<Vec<Selection>>,
executor: &mut Executor<CtxT>)
-> ExecutionResult
type_name: &str,
selection_set: Option<Vec<Selection>>,
executor: &mut Executor<CtxT>)
-> ExecutionResult
Resolve this interface or union into a concrete type Read more
fn concrete_type_name(&self, context: &CtxT) -> String
Return the concrete type name for this instance/union. Read more
impl ToInputValue for ID
[src]
fn to(&self) -> InputValue
Performs the conversion.
impl FromInputValue for ID
[src]
fn from(v: &InputValue) -> Option<ID>
Performs the conversion.
impl IntoFieldResult<ID> for ID
[src]
fn into(self) -> FieldResult<ID>
Wrap self
in a Result
Read more