pub struct GeneratedFile {
pub path: PathBuf,
pub content: String,
pub extension: String,
pub exportable: bool,
}Expand description
Represents a generated file with metadata
Fields§
§path: PathBufRelative path from output directory
content: StringFile content
extension: StringFile extension (without dot)
exportable: boolWhether this file should be included in barrel exports
Trait Implementations§
Source§impl Clone for GeneratedFile
impl Clone for GeneratedFile
Source§fn clone(&self) -> GeneratedFile
fn clone(&self) -> GeneratedFile
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 GeneratedFile
impl RefUnwindSafe for GeneratedFile
impl Send for GeneratedFile
impl Sync for GeneratedFile
impl Unpin for GeneratedFile
impl UnwindSafe for GeneratedFile
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