[][src]Struct juniper::meta::Field

pub struct Field<'a, S> { /* fields omitted */ }

Metadata for a field

Implementations

impl<'a, S> Field<'a, S>[src]

pub fn is_builtin(&self) -> bool[src]

Returns true if the type is built-in to GraphQL.

impl<'a, S> Field<'a, S>[src]

pub fn description(mut self: Self, description: &str) -> Self[src]

Set the description of the field

This overwrites the description if any was previously set.

pub fn argument(mut self: Self, argument: Argument<'a, S>) -> Self[src]

Add an argument to the field

Arguments are unordered and can't contain duplicates by name.

pub fn deprecated(mut self: Self, reason: Option<&str>) -> Self[src]

Set the field to be deprecated with an optional reason.

This overwrites the deprecation reason if any was previously set.

Trait Implementations

impl<'a, S: Clone> Clone for Field<'a, S>[src]

impl<'a, S: Debug> Debug for Field<'a, S>[src]

impl<'a, S> GraphQLObjectType<S> for Field<'a, S> where
    S: ScalarValue + 'a, 
[src]

impl<'a, S> GraphQLType<S> for Field<'a, S> where
    S: ScalarValue + 'a, 
[src]

impl<'a, S> GraphQLValue<S> for Field<'a, S> where
    S: ScalarValue + 'a, 
[src]

type Context = SchemaType<'a, S>

Context type for this GraphQLValue. Read more

type TypeInfo = ()

Type that may carry additional schema information for this GraphQLValue. Read more

impl<'a, S> GraphQLValueAsync<S> for Field<'a, S> where
    S: ScalarValue + 'a,
    S: Send + Sync,
    Self: Sync
[src]

impl<'a, S> IsOutputType<S> for Field<'a, S> where
    S: ScalarValue + 'a, 
[src]

Auto Trait Implementations

impl<'a, S> RefUnwindSafe for Field<'a, S> where
    S: RefUnwindSafe
[src]

impl<'a, S> Send for Field<'a, S> where
    S: Send
[src]

impl<'a, S> Sync for Field<'a, S> where
    S: Sync
[src]

impl<'a, S> Unpin for Field<'a, S> where
    S: Unpin
[src]

impl<'a, S> UnwindSafe for Field<'a, S> where
    S: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,