pub struct GeneratedFiles {
pub rust_file: PathBuf,
pub dampen_file: PathBuf,
pub window_name: WindowName,
pub target_dir: PathBuf,
pub updated_mod_file: Option<PathBuf>,
pub view_switching_activated: bool,
}Expand description
Result of file generation
Fields§
§rust_file: PathBufPath to generated .rs file
dampen_file: PathBufPath to generated .dampen file
window_name: WindowNameValidated window name
target_dir: PathBufTarget directory where files were created
updated_mod_file: Option<PathBuf>Path to mod.rs that was updated (if integration was performed)
view_switching_activated: boolWhether main.rs was modified to enable view switching
Implementations§
Source§impl GeneratedFiles
impl GeneratedFiles
Sourcepub fn success_message(&self) -> String
pub fn success_message(&self) -> String
Generate a success message showing what was created
Trait Implementations§
Source§impl Clone for GeneratedFiles
impl Clone for GeneratedFiles
Source§fn clone(&self) -> GeneratedFiles
fn clone(&self) -> GeneratedFiles
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 GeneratedFiles
impl RefUnwindSafe for GeneratedFiles
impl Send for GeneratedFiles
impl Sync for GeneratedFiles
impl Unpin for GeneratedFiles
impl UnwindSafe for GeneratedFiles
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