pub struct GenerationResult {
pub files: Vec<GeneratedFile>,
pub mod_file: GeneratedFile,
pub required_deps: Vec<DepRequirement>,
pub pruned_schemas: usize,
}Expand description
Result of code generation containing multiple files
Fields§
§files: Vec<GeneratedFile>All generated files
mod_file: GeneratedFileGenerated mod.rs content that exports all modules
required_deps: Vec<DepRequirement>Complete direct dependencies for the exact files in this result,
including required crate features and compatible versions. The CLI
writes these as REQUIRED_DEPS.toml next to the generated module.
pruned_schemas: usizeNumber of schemas removed by opt-in client/server model pruning.
Trait Implementations§
Source§impl Clone for GenerationResult
impl Clone for GenerationResult
Source§fn clone(&self) -> GenerationResult
fn clone(&self) -> GenerationResult
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 moreAuto Trait Implementations§
impl Freeze for GenerationResult
impl RefUnwindSafe for GenerationResult
impl Send for GenerationResult
impl Sync for GenerationResult
impl Unpin for GenerationResult
impl UnsafeUnpin for GenerationResult
impl UnwindSafe for GenerationResult
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