pub struct GraphQLCodegen { /* private fields */ }Expand description
Code generator for GraphQL schemas from symbol tables.
This generator creates GraphQL type definitions, queries, and mutations from TensorLogic schemas, enabling API development with type-safe schemas.
Implementations§
Source§impl GraphQLCodegen
impl GraphQLCodegen
Sourcepub fn with_descriptions(self, enable: bool) -> Self
pub fn with_descriptions(self, enable: bool) -> Self
Set whether to include descriptions.
Sourcepub fn with_queries(self, enable: bool) -> Self
pub fn with_queries(self, enable: bool) -> Self
Set whether to generate Query type.
Sourcepub fn with_mutations(self, enable: bool) -> Self
pub fn with_mutations(self, enable: bool) -> Self
Set whether to generate Mutation type.
Sourcepub fn generate(&self, table: &SymbolTable) -> String
pub fn generate(&self, table: &SymbolTable) -> String
Generate complete GraphQL schema from a symbol table.
Auto Trait Implementations§
impl Freeze for GraphQLCodegen
impl RefUnwindSafe for GraphQLCodegen
impl Send for GraphQLCodegen
impl Sync for GraphQLCodegen
impl Unpin for GraphQLCodegen
impl UnwindSafe for GraphQLCodegen
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