pub struct ObjectField<'a> {
pub name: &'a str,
pub value: Value<'a>,
}
Expand description
AST Node for a field of an Object value.
Objects in GraphQL are unordered lists of keyed input values and serialize to JSON objects. An Object literal’s contents may be any arbitrary value literal or variable. Reference
Fields§
§name: &'a str
§value: Value<'a>
Trait Implementations§
Source§impl<'a> Clone for ObjectField<'a>
impl<'a> Clone for ObjectField<'a>
Source§fn clone(&self) -> ObjectField<'a>
fn clone(&self) -> ObjectField<'a>
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<'a> Debug for ObjectField<'a>
impl<'a> Debug for ObjectField<'a>
Source§impl<'a> PartialEq for ObjectField<'a>
impl<'a> PartialEq for ObjectField<'a>
Source§impl<'a> PrintNode for ObjectField<'a>
impl<'a> PrintNode for ObjectField<'a>
impl<'a> StructuralPartialEq for ObjectField<'a>
Auto Trait Implementations§
impl<'a> Freeze for ObjectField<'a>
impl<'a> !RefUnwindSafe for ObjectField<'a>
impl<'a> !Send for ObjectField<'a>
impl<'a> !Sync for ObjectField<'a>
impl<'a> Unpin for ObjectField<'a>
impl<'a> !UnwindSafe for ObjectField<'a>
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