pub struct FileInfo {
pub filename: String,
pub content: String,
pub category: FileCategory,
}Expand description
Generic file information for writing
Fields§
§filename: String§content: String§category: FileCategoryImplementations§
Source§impl FileInfo
impl FileInfo
Sourcepub fn new(filename: String, content: String, category: FileCategory) -> Self
pub fn new(filename: String, content: String, category: FileCategory) -> Self
Create a new FileInfo with the specified category
Sourcepub fn none(filename: String, content: String) -> Self
pub fn none(filename: String, content: String) -> Self
Create a new FileInfo without a category
Sourcepub fn readme(filename: String, content: String) -> Self
pub fn readme(filename: String, content: String) -> Self
Create a new FileInfo for README files
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileInfo
impl RefUnwindSafe for FileInfo
impl Send for FileInfo
impl Sync for FileInfo
impl Unpin for FileInfo
impl UnsafeUnpin for FileInfo
impl UnwindSafe for FileInfo
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