pub struct Arguments<'a, S = DefaultScalarValue> { /* private fields */ }
Expand description
Field argument container
Implementations§
source§impl<'a, S> Arguments<'a, S>where
S: ScalarValue,
impl<'a, S> Arguments<'a, S>where
S: ScalarValue,
sourcepub fn get<T>(&self, key: &str) -> Option<T>where
T: FromInputValue<S>,
pub fn get<T>(&self, key: &str) -> Option<T>where
T: FromInputValue<S>,
Get and convert an argument into the desired type.
If the argument is found, or a default argument has been provided,
the InputValue
will be converted into the type T
.
Returns Some
if the argument is present and type conversion
succeeeds.