Struct dynamic_graphql::dynamic::Interface
source · pub struct Interface { /* private fields */ }
Expand description
A GraphQL interface type
Implementations§
source§impl Interface
impl Interface
sourcepub fn description(self, description: impl Into<String>) -> Interface
pub fn description(self, description: impl Into<String>) -> Interface
Set the description
sourcepub fn extends(self) -> Interface
pub fn extends(self) -> Interface
Indicates that an object or interface definition is an extension of another definition of that same type.
sourcepub fn inaccessible(self) -> Interface
pub fn inaccessible(self) -> Interface
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 field(self, field: InterfaceField) -> Interface
pub fn field(self, field: InterfaceField) -> Interface
Add a field to the interface type
sourcepub fn implement(self, interface: impl Into<String>) -> Interface
pub fn implement(self, interface: impl Into<String>) -> Interface
Add an implement to the interface type