[−][src]Struct juniper::meta::Argument
Metadata for an argument to a field
Methods
impl<'a, S> Argument<'a, S>
[src]
pub fn description(self, description: &str) -> Self
[src]
Set the description of the argument
This overwrites the description if any was previously set.
pub fn push_docstring(self, multiline: &[&str]) -> Argument<'a, S>
[src]
Adds a (multi)line doc string to the description of the field. Any leading or trailing newlines will be removed.
If the docstring contains newlines, repeated leading tab and space characters will be removed from the beginning of each line.
If the description hasn't been set, the description is set to the provided line. Otherwise, the doc string is added to the current description after a newline.
pub fn default_value(self, default_value: InputValue<S>) -> Self
[src]
Set the default value of the argument
This overwrites the description if any was previously set.
Trait Implementations
impl<'a, S: Clone> Clone for Argument<'a, S>
[src]
impl<'a, S: Debug> Debug for Argument<'a, S>
[src]
impl<'a, S> GraphQLType<S> for Argument<'a, S> where
S: ScalarValue + 'a,
&'__b S: ScalarRefValue<'__b>,
[src]
S: ScalarValue + 'a,
&'__b S: ScalarRefValue<'__b>,
type Context = SchemaType<'a, S>
The expected context type for this GraphQL type Read more
type TypeInfo = ()
Type that may carry additional schema information Read more
fn name(_: &Self::TypeInfo) -> Option<&str>
[src]
fn meta<'r>(
info: &Self::TypeInfo,
registry: &mut Registry<'r, S>
) -> MetaType<'r, S> where
S: 'r,
&'z S: ScalarRefValue<'z>,
[src]
info: &Self::TypeInfo,
registry: &mut Registry<'r, S>
) -> MetaType<'r, S> where
S: 'r,
&'z S: ScalarRefValue<'z>,
fn resolve_field(
&self,
_info: &(),
field: &str,
args: &Arguments<S>,
executor: &Executor<Self::Context, S>
) -> ExecutionResult<S>
[src]
&self,
_info: &(),
field: &str,
args: &Arguments<S>,
executor: &Executor<Self::Context, S>
) -> ExecutionResult<S>
fn concrete_type_name(&self, _: &Self::Context, _: &Self::TypeInfo) -> String
[src]
fn resolve_into_type(
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> ExecutionResult<S>
[src]
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> ExecutionResult<S>
fn resolve(
&self,
info: &Self::TypeInfo,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Value<S>
[src]
&self,
info: &Self::TypeInfo,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Value<S>
Auto Trait Implementations
impl<'a, S> RefUnwindSafe for Argument<'a, S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<'a, S> Send for Argument<'a, S> where
S: Send,
S: Send,
impl<'a, S> Sync for Argument<'a, S> where
S: Sync,
S: Sync,
impl<'a, S> Unpin for Argument<'a, S> where
S: Unpin,
S: Unpin,
impl<'a, S> UnwindSafe for Argument<'a, S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,