pub struct IntermediateFragment {
pub name: String,
pub type_condition: String,
pub fields: Vec<IntermediateFragmentField>,
pub description: Option<String>,
}Expand description
Fragment definition in intermediate format.
Fragments are reusable field selections that can be spread into queries. Per GraphQL spec §2.9-2.10, fragments have a type condition and field list.
§Example JSON
{
"name": "UserFields",
"on": "User",
"fields": ["id", "name", "email"]
}Fields§
§name: StringFragment name (e.g., “UserFields”)
type_condition: StringType condition - the type this fragment applies to (e.g., “User”)
fields: Vec<IntermediateFragmentField>Fields to select (can be field names or nested fragment spreads)
description: Option<String>Fragment description (from docstring)
Trait Implementations§
Source§impl Clone for IntermediateFragment
impl Clone for IntermediateFragment
Source§fn clone(&self) -> IntermediateFragment
fn clone(&self) -> IntermediateFragment
Returns a duplicate 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 IntermediateFragment
impl Debug for IntermediateFragment
Source§impl<'de> Deserialize<'de> for IntermediateFragment
impl<'de> Deserialize<'de> for IntermediateFragment
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 PartialEq for IntermediateFragment
impl PartialEq for IntermediateFragment
Source§impl Serialize for IntermediateFragment
impl Serialize for IntermediateFragment
impl Eq for IntermediateFragment
impl StructuralPartialEq for IntermediateFragment
Auto Trait Implementations§
impl Freeze for IntermediateFragment
impl RefUnwindSafe for IntermediateFragment
impl Send for IntermediateFragment
impl Sync for IntermediateFragment
impl Unpin for IntermediateFragment
impl UnwindSafe for IntermediateFragment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.