pub struct Id(_);
Expand description
A GraphQL ID
Any field in a GraphQL schema that has the type ID
should be represented by
this struct.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Id
impl<'de> Deserialize<'de> for Id
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl CoercesTo<Id> for &str
impl CoercesTo<Id> for Id
impl CoercesTo<Option<Id>> for Id
impl CoercesTo<Option<Option<Id>>> for Id
impl CoercesTo<Option<Vec<Id, Global>>> for Id
impl CoercesTo<Option<Vec<Option<Id>, Global>>> for Id
impl CoercesTo<Vec<Id, Global>> for Id
impl CoercesTo<Vec<Vec<Id, Global>, Global>> for Id
impl Eq for Id
impl StructuralEq for Id
impl StructuralPartialEq for Id
Auto Trait Implementations§
impl RefUnwindSafe for Id
impl Send for Id
impl Sync for Id
impl Unpin for Id
impl UnwindSafe for Id
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.