pub struct GeneratedCrate {
pub crate_name: String,
pub files: HashMap<String, GeneratedFile>,
}Expand description
Result of generation for a single crate.
Contains generated source files keyed by crate-relative paths
(e.g., "src/lib.rs", "src/models.rs"), not workspace-relative paths.
Fields§
§crate_name: StringCrate name (e.g., "core", "app")
files: HashMap<String, GeneratedFile>Generated files: crate-relative path → generated file
Keys are paths relative to the crate root, such as:
"src/lib.rs"(library entry point)"src/main.rs"(binary entry point)"src/models.rs"(submodule)"src/models/user.rs"(nested submodule)
Note: These are NOT workspace-relative paths. The caller must
prepend the crate’s root directory (e.g., "crates/core") to get
the full workspace path.
Trait Implementations§
Source§impl Clone for GeneratedCrate
impl Clone for GeneratedCrate
Source§fn clone(&self) -> GeneratedCrate
fn clone(&self) -> GeneratedCrate
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 GeneratedCrate
impl RefUnwindSafe for GeneratedCrate
impl Send for GeneratedCrate
impl Sync for GeneratedCrate
impl Unpin for GeneratedCrate
impl UnsafeUnpin for GeneratedCrate
impl UnwindSafe for GeneratedCrate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more