pub struct ProjectFolder { /* private fields */ }
Implementations§
source§impl ProjectFolder
impl ProjectFolder
sourcepub fn set_name<S: BnStrCompatible>(&self, value: S) -> bool
pub fn set_name<S: BnStrCompatible>(&self, value: S) -> bool
Set the name of this folder
sourcepub fn description(&self) -> BnString
pub fn description(&self) -> BnString
Get the description of this folder
sourcepub fn set_description<S: BnStrCompatible>(&self, value: S) -> bool
pub fn set_description<S: BnStrCompatible>(&self, value: S) -> bool
Set the description of this folder
sourcepub fn parent(&self) -> Option<Ref<ProjectFolder>>
pub fn parent(&self) -> Option<Ref<ProjectFolder>>
Get the folder that contains this folder
sourcepub fn set_folder(&self, folder: Option<&ProjectFolder>) -> bool
pub fn set_folder(&self, folder: Option<&ProjectFolder>) -> bool
Set the folder that contains this folder
sourcepub fn export<S: BnStrCompatible>(&self, dest: S) -> bool
pub fn export<S: BnStrCompatible>(&self, dest: S) -> bool
Recursively export this folder to disk, returns `true’ if the export succeeded
dest
- Destination path for the exported contents
sourcepub fn export_with_progress<S, P>(&self, dest: S, progress: P) -> boolwhere
S: BnStrCompatible,
P: ProgressCallback,
pub fn export_with_progress<S, P>(&self, dest: S, progress: P) -> boolwhere
S: BnStrCompatible,
P: ProgressCallback,
Recursively export this folder to disk, returns `true’ if the export succeeded
dest
- Destination path for the exported contentsprogress
-ProgressCallback
that will be called as contents are exporting
Trait Implementations§
source§impl CoreArrayProvider for ProjectFolder
impl CoreArrayProvider for ProjectFolder
source§impl Debug for ProjectFolder
impl Debug for ProjectFolder
source§impl ToOwned for ProjectFolder
impl ToOwned for ProjectFolder
source§type Owned = Ref<ProjectFolder>
type Owned = Ref<ProjectFolder>
The resulting type after obtaining ownership.
source§fn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
Auto Trait Implementations§
impl Freeze for ProjectFolder
impl RefUnwindSafe for ProjectFolder
impl !Send for ProjectFolder
impl !Sync for ProjectFolder
impl Unpin for ProjectFolder
impl UnwindSafe for ProjectFolder
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