[−][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.
Implementations
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]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for ID
[src]
impl Eq for ID
[src]
impl From<String> for ID
[src]
impl<S> FromInputValue<S> for ID where
S: ScalarValue,
[src]
S: ScalarValue,
pub fn from_input_value(v: &InputValue<S>) -> Option<ID>
[src]
pub fn from_implicit_null() -> Self
[src]
impl<S> GraphQLType<S> for ID where
S: ScalarValue,
[src]
S: ScalarValue,
pub fn name(_: &Self::TypeInfo) -> Option<&'static str>
[src]
pub fn meta<'r>(
info: &Self::TypeInfo,
registry: &mut Registry<'r, S>
) -> MetaType<'r, S> where
S: 'r,
[src]
info: &Self::TypeInfo,
registry: &mut Registry<'r, S>
) -> MetaType<'r, S> where
S: 'r,
impl<S> GraphQLValue<S> for ID where
S: ScalarValue,
[src]
S: ScalarValue,
type Context = ()
Context type for this GraphQLValue
. Read more
type TypeInfo = ()
Type that may carry additional schema information for this GraphQLValue
. Read more
pub fn type_name<'__i>(&self, info: &'__i Self::TypeInfo) -> Option<&'__i str>
[src]
pub fn resolve(
&self,
info: &(),
selection: Option<&[Selection<'_, S>]>,
executor: &Executor<'_, '_, Self::Context, S>
) -> ExecutionResult<S>
[src]
&self,
info: &(),
selection: Option<&[Selection<'_, S>]>,
executor: &Executor<'_, '_, Self::Context, S>
) -> ExecutionResult<S>
pub 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>
pub 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>
pub fn concrete_type_name(
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
[src]
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
impl<__S> GraphQLValueAsync<__S> for ID where
Self: Sync,
Self::TypeInfo: Sync,
Self::Context: Sync,
__S: ScalarValue + Send + Sync,
[src]
Self: Sync,
Self::TypeInfo: Sync,
Self::Context: Sync,
__S: ScalarValue + Send + Sync,
pub fn resolve_async<'a>(
&'a self,
info: &'a Self::TypeInfo,
selection_set: Option<&'a [Selection<'_, __S>]>,
executor: &'a Executor<'_, '_, Self::Context, __S>
) -> BoxFuture<'a, ExecutionResult<__S>>
[src]
&'a self,
info: &'a Self::TypeInfo,
selection_set: Option<&'a [Selection<'_, __S>]>,
executor: &'a Executor<'_, '_, Self::Context, __S>
) -> BoxFuture<'a, ExecutionResult<__S>>
pub fn resolve_field_async<'a>(
&'a self,
_info: &'a Self::TypeInfo,
_field_name: &'a str,
_arguments: &'a Arguments<'_, S>,
_executor: &'a Executor<'_, '_, Self::Context, S>
) -> BoxFuture<'a, ExecutionResult<S>>
[src]
&'a self,
_info: &'a Self::TypeInfo,
_field_name: &'a str,
_arguments: &'a Arguments<'_, S>,
_executor: &'a Executor<'_, '_, Self::Context, S>
) -> BoxFuture<'a, ExecutionResult<S>>
pub fn resolve_into_type_async<'a>(
&'a self,
info: &'a Self::TypeInfo,
type_name: &str,
selection_set: Option<&'a [Selection<'a, S>]>,
executor: &'a Executor<'a, 'a, Self::Context, S>
) -> BoxFuture<'a, ExecutionResult<S>>
[src]
&'a self,
info: &'a Self::TypeInfo,
type_name: &str,
selection_set: Option<&'a [Selection<'a, S>]>,
executor: &'a Executor<'a, 'a, Self::Context, S>
) -> BoxFuture<'a, ExecutionResult<S>>
impl<S> IsInputType<S> for ID where
S: ScalarValue,
[src]
S: ScalarValue,
impl<S> IsOutputType<S> for ID where
S: ScalarValue,
[src]
S: ScalarValue,
impl<S> ParseScalarValue<S> for ID where
S: ScalarValue,
[src]
S: ScalarValue,
pub fn from_str<'a>(value: ScalarToken<'a>) -> ParseScalarResult<'a, S>
[src]
impl PartialEq<ID> for ID
[src]
impl Serialize for ID
[src]
pub 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,
[src]
S: ScalarValue,
pub 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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> 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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,