pub struct GenerationResult {
pub files: Vec<GeneratedFile>,
pub mod_file: GeneratedFile,
pub required_deps: Vec<DepRequirement>,
}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>Optional crates the generated code references (chrono, uuid,
url, …) — populated from the analyzer’s TypeMapper
used-features set. The CLI uses this to write
REQUIRED_DEPS.toml next to the generated module and to
print a stderr summary so users know exactly what to add to
their Cargo.toml. Empty when no typed-scalar crates were
referenced.
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