pub struct ProjectFile { /* private fields */ }
Implementations§
source§impl ProjectFile
impl ProjectFile
sourcepub fn path_on_disk(&self) -> BnString
pub fn path_on_disk(&self) -> BnString
Get the path on disk to this file’s contents
sourcepub fn exists_on_disk(&self) -> bool
pub fn exists_on_disk(&self) -> bool
Check if this file’s contents exist on disk
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 file
sourcepub fn description(&self) -> BnString
pub fn description(&self) -> BnString
Get the description of this file
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 file
sourcepub fn creation_time(&self) -> SystemTime
pub fn creation_time(&self) -> SystemTime
Get the file creation time
sourcepub fn folder(&self) -> Option<Ref<ProjectFolder>>
pub fn folder(&self) -> Option<Ref<ProjectFolder>>
Get the folder that contains this file
sourcepub fn set_folder(&self, folder: Option<&ProjectFolder>) -> bool
pub fn set_folder(&self, folder: Option<&ProjectFolder>) -> bool
Set the folder that contains this file
sourcepub fn export<S: BnStrCompatible>(&self, dest: S) -> bool
pub fn export<S: BnStrCompatible>(&self, dest: S) -> bool
Export this file to disk, `true’ if the export succeeded
dest
- Destination path for the exported contents
Trait Implementations§
source§impl CoreArrayProvider for ProjectFile
impl CoreArrayProvider for ProjectFile
source§impl Debug for ProjectFile
impl Debug for ProjectFile
source§impl ToOwned for ProjectFile
impl ToOwned for ProjectFile
source§type Owned = Ref<ProjectFile>
type Owned = Ref<ProjectFile>
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 ProjectFile
impl RefUnwindSafe for ProjectFile
impl !Send for ProjectFile
impl !Sync for ProjectFile
impl Unpin for ProjectFile
impl UnwindSafe for ProjectFile
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