pub struct RootCodegen {
pub type_name: Option<String>,
}Expand description
Root-level codegen settings.
Corresponds to $types.root-codegen in the schema.
Used at document root via $codegen extension.
§Example
$codegen {
type = "MyRootType"
}Fields§
§type_name: Option<String>The root type name for the generated code.
Trait Implementations§
Source§impl Clone for RootCodegen
impl Clone for RootCodegen
Source§fn clone(&self) -> RootCodegen
fn clone(&self) -> RootCodegen
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RootCodegen
impl Debug for RootCodegen
Source§impl Default for RootCodegen
impl Default for RootCodegen
Source§fn default() -> RootCodegen
fn default() -> RootCodegen
Returns the “default value” for a type. Read more
Source§impl<'doc> ParseDocument<'doc> for RootCodegen
impl<'doc> ParseDocument<'doc> for RootCodegen
Source§type Error = ParseError
type Error = ParseError
The error type returned by parsing.
Auto Trait Implementations§
impl Freeze for RootCodegen
impl RefUnwindSafe for RootCodegen
impl Send for RootCodegen
impl Sync for RootCodegen
impl Unpin for RootCodegen
impl UnwindSafe for RootCodegen
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