Struct async_graphql::dynamic::Interface
source · pub struct Interface { /* private fields */ }
Available on crate feature
dynamic-schema
only.Expand description
A GraphQL interface type
Implementations
sourceimpl Interface
impl Interface
sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Set the description
sourcepub fn field(self, field: InterfaceField) -> Self
pub fn field(self, field: InterfaceField) -> Self
Add a field to the interface type
sourcepub fn implement(self, interface: impl Into<String>) -> Self
pub fn implement(self, interface: impl Into<String>) -> Self
Add an implement to the interface type
sourcepub fn type_ref(&self) -> NamedTypeRefBuilder
pub fn type_ref(&self) -> NamedTypeRefBuilder
Returns the type reference
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Interface
impl Send for Interface
impl Sync for Interface
impl Unpin for Interface
impl UnwindSafe for Interface
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