#[non_exhaustive]pub enum GraphqlBackend {
AsyncGraphql(AsyncGraphql),
}Expand description
One GraphQL backend’s rendering of a record.
One variant today, and that is the extension point rather than a premature abstraction: the
shape is what keeps a second backend from being a redesign. CLOSED and #[non_exhaustive] for
the reasons DatabaseBackend gives — codegen must know a backend to emit its derives, so a
third-party one is a change to this crate whichever shape this takes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AsyncGraphql(AsyncGraphql)
async-graphql.
Implementations§
Source§impl GraphqlBackend
impl GraphqlBackend
Sourcepub const fn kind(&self) -> GraphqlKind
pub const fn kind(&self) -> GraphqlKind
Which backend this is.
Sourcepub const fn attrs(&self) -> &TokenStream
pub const fn attrs(&self) -> &TokenStream
attrs(…), verbatim.
Sourcepub const fn fields(&self) -> &[GraphqlField]
pub const fn fields(&self) -> &[GraphqlField]
The fields this backend exposes.
Trait Implementations§
Source§impl Clone for GraphqlBackend
impl Clone for GraphqlBackend
Auto Trait Implementations§
impl !Send for GraphqlBackend
impl !Sync for GraphqlBackend
impl Freeze for GraphqlBackend
impl RefUnwindSafe for GraphqlBackend
impl Unpin for GraphqlBackend
impl UnsafeUnpin for GraphqlBackend
impl UnwindSafe for GraphqlBackend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more