pub struct GeneratedCode {
pub code: String,
pub module_name: String,
pub source_file: PathBuf,
pub timestamp: SystemTime,
pub validated: bool,
}Expand description
Container for generated Rust code with metadata
This structure holds generated code along with metadata about the source file and validation status. It provides methods for validating and formatting the generated code.
Fields§
§code: StringGenerated Rust source code
module_name: StringModule path (e.g., “ui_window”)
source_file: PathBufSource .dampen file path
timestamp: SystemTimeGenerated at timestamp
validated: boolValidation status
Implementations§
Source§impl GeneratedCode
impl GeneratedCode
Trait Implementations§
Source§impl Clone for GeneratedCode
impl Clone for GeneratedCode
Source§fn clone(&self) -> GeneratedCode
fn clone(&self) -> GeneratedCode
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 moreAuto Trait Implementations§
impl Freeze for GeneratedCode
impl RefUnwindSafe for GeneratedCode
impl Send for GeneratedCode
impl Sync for GeneratedCode
impl Unpin for GeneratedCode
impl UnwindSafe for GeneratedCode
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