Struct async_graphql::dynamic::Enum
source · pub struct Enum { /* private fields */ }
Available on crate feature
dynamic-schema
only.Expand description
A GraphQL enum type
Implementations§
source§impl Enum
impl Enum
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