pub struct Arguments<'a> {
pub children: Vec<'a, Argument<'a>>,
}
Expand description
AST Node for a list of Arguments, which are similar to parameterized inputs to a function.
Arguments in GraphQL are unordered lists of inputs to a field’s or directive’s arguments. Reference
Fields§
§children: Vec<'a, Argument<'a>>
Implementations§
Source§impl<'a> Arguments<'a>
impl<'a> Arguments<'a>
Sourcepub fn as_object_value(&'a self, ctx: &'a ASTContext) -> ObjectValue<'a>
pub fn as_object_value(&'a self, ctx: &'a ASTContext) -> ObjectValue<'a>
Converts Arguments
into an ObjectValue
Sourcepub fn as_map(
&'a self,
ctx: &'a ASTContext,
) -> HashMap<&str, &Value<'a>, DefaultHashBuilder, &'a Bump>
pub fn as_map( &'a self, ctx: &'a ASTContext, ) -> HashMap<&str, &Value<'a>, DefaultHashBuilder, &'a Bump>
Returns a Map
keyed by all arguments’ names mapped to their values.
Trait Implementations§
Source§impl<'a> IntoIterator for Arguments<'a>
impl<'a> IntoIterator for Arguments<'a>
impl<'a> StructuralPartialEq for Arguments<'a>
Auto Trait Implementations§
impl<'a> Freeze for Arguments<'a>
impl<'a> !RefUnwindSafe for Arguments<'a>
impl<'a> !Send for Arguments<'a>
impl<'a> !Sync for Arguments<'a>
impl<'a> Unpin for Arguments<'a>
impl<'a> !UnwindSafe for Arguments<'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