Enum graphql_client::PathFragment
source · pub enum PathFragment {
Key(String),
Index(i32),
}
Expand description
Part of a path in a query. It can be an object key or an array index. See Error
.
Variants§
Trait Implementations§
source§impl Clone for PathFragment
impl Clone for PathFragment
source§fn clone(&self) -> PathFragment
fn clone(&self) -> PathFragment
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PathFragment
impl Debug for PathFragment
source§impl<'de> Deserialize<'de> for PathFragment
impl<'de> Deserialize<'de> for PathFragment
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
source§impl Display for PathFragment
impl Display for PathFragment
source§impl PartialEq<PathFragment> for PathFragment
impl PartialEq<PathFragment> for PathFragment
source§fn eq(&self, other: &PathFragment) -> bool
fn eq(&self, other: &PathFragment) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.