Struct async_graphql::dynamic::InputValue
source · pub struct InputValue { /* private fields */ }
Available on crate feature
dynamic-schema
only.Expand description
A GraphQL input value type
Implementations
sourceimpl InputValue
impl InputValue
sourcepub fn new(name: impl Into<String>, ty: impl Into<TypeRef>) -> Self
pub fn new(name: impl Into<String>, ty: impl Into<TypeRef>) -> Self
Create a GraphQL input value type
sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Set the description
sourcepub fn inaccessible(self) -> Self
pub fn inaccessible(self) -> Self
Indicate that an enum is not accessible from a supergraph when using Apollo Federation
Reference: https://www.apollographql.com/docs/federation/federated-types/federated-directives/#inaccessible
Arbitrary string metadata that will be propagated to the supergraph when using Apollo Federation. This attribute is repeatable
sourcepub fn default_value(self, value: impl Into<Value>) -> Self
pub fn default_value(self, value: impl Into<Value>) -> Self
Set the default value
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for InputValue
impl Send for InputValue
impl Sync for InputValue
impl Unpin for InputValue
impl UnwindSafe for InputValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more