pub struct GeneratorSection {
pub spec_path: PathBuf,
pub output_dir: PathBuf,
pub module_name: String,
pub schema_extensions: Vec<PathBuf>,
}Fields§
§spec_path: PathBuf§output_dir: PathBuf§module_name: StringInformational label, not a directory or module path. The generator writes the same files (mod.rs, types.rs, server/*) regardless of this value. It shows up only in the generated mod.rs header doc comment as a hint and is used by the streaming codegen for naming the SSE client module. You mount the tree at whatever Rust module path you prefer.
schema_extensions: Vec<PathBuf>Schema extension files to merge into the main spec before codegen. Paths are relative to the working directory (same as spec_path).
Trait Implementations§
Source§impl Clone for GeneratorSection
impl Clone for GeneratorSection
Source§fn clone(&self) -> GeneratorSection
fn clone(&self) -> GeneratorSection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GeneratorSection
impl Debug for GeneratorSection
Source§impl<'de> Deserialize<'de> for GeneratorSection
impl<'de> Deserialize<'de> for GeneratorSection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for GeneratorSection
impl Serialize for GeneratorSection
Source§impl Validate for GeneratorSection
impl Validate for GeneratorSection
Source§impl<'v_a> ValidateArgs<'v_a> for GeneratorSection
impl<'v_a> ValidateArgs<'v_a> for GeneratorSection
Auto Trait Implementations§
impl Freeze for GeneratorSection
impl RefUnwindSafe for GeneratorSection
impl Send for GeneratorSection
impl Sync for GeneratorSection
impl Unpin for GeneratorSection
impl UnsafeUnpin for GeneratorSection
impl UnwindSafe for GeneratorSection
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