Struct async_graphql::dynamic::EnumItem
source · pub struct EnumItem { /* private fields */ }
Available on crate feature
dynamic-schema
only.Expand description
A GraphQL enum item
Implementations
sourceimpl EnumItem
impl EnumItem
sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Set the description
sourcepub fn deprecation(self, reason: Option<&str>) -> Self
pub fn deprecation(self, reason: Option<&str>) -> 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
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for EnumItem
impl Send for EnumItem
impl Sync for EnumItem
impl Unpin for EnumItem
impl UnwindSafe for EnumItem
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