pub struct FileListBuilder { /* private fields */ }Implementations§
Source§impl FileListBuilder
impl FileListBuilder
pub fn new() -> Self
Sourcepub fn add(
&mut self,
name: impl Into<String>,
relative_path: impl Into<String>,
group: impl Into<String>,
template_name: impl Into<String>,
nature: FileNature,
) -> &mut File
pub fn add( &mut self, name: impl Into<String>, relative_path: impl Into<String>, group: impl Into<String>, template_name: impl Into<String>, nature: FileNature, ) -> &mut File
Add a file with the 5 essential fields. Returns &mut File
so the caller can set optional fields directly.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileListBuilder
impl RefUnwindSafe for FileListBuilder
impl Send for FileListBuilder
impl Sync for FileListBuilder
impl Unpin for FileListBuilder
impl UnsafeUnpin for FileListBuilder
impl UnwindSafe for FileListBuilder
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