pub struct FragmentDefinition {
pub name: String,
pub span: Range<usize>,
}Expand description
GraphQL fragment definition.
Fields§
§name: StringName of the fragment.
span: Range<usize>Source span.
Implementations§
Trait Implementations§
Source§impl Clone for FragmentDefinition
impl Clone for FragmentDefinition
Source§fn clone(&self) -> FragmentDefinition
fn clone(&self) -> FragmentDefinition
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 FragmentDefinition
impl Debug for FragmentDefinition
Source§impl<'de> Deserialize<'de> for FragmentDefinition
impl<'de> Deserialize<'de> for FragmentDefinition
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 FragmentDefinition
impl PartialEq for FragmentDefinition
Source§impl Serialize for FragmentDefinition
impl Serialize for FragmentDefinition
impl StructuralPartialEq for FragmentDefinition
Auto Trait Implementations§
impl Freeze for FragmentDefinition
impl RefUnwindSafe for FragmentDefinition
impl Send for FragmentDefinition
impl Sync for FragmentDefinition
impl Unpin for FragmentDefinition
impl UnsafeUnpin for FragmentDefinition
impl UnwindSafe for FragmentDefinition
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