pub struct FileFragment {
pub path: &'static str,
pub content: &'static str,
}Expand description
A file to be generated as part of the scaffold.
Fields§
§path: &'static strRelative path within the generated project.
content: &'static strFile content to write.
Trait Implementations§
Source§impl Clone for FileFragment
impl Clone for FileFragment
Source§fn clone(&self) -> FileFragment
fn clone(&self) -> FileFragment
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 FileFragment
impl RefUnwindSafe for FileFragment
impl Send for FileFragment
impl Sync for FileFragment
impl Unpin for FileFragment
impl UnsafeUnpin for FileFragment
impl UnwindSafe for FileFragment
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