Struct backup_deduplicator::data::FilePath
source · pub struct FilePath {
pub path: Vec<PathComponent>,
}Fields§
§path: Vec<PathComponent>Implementations§
source§impl FilePath
impl FilePath
pub fn from_vec(path: Vec<PathComponent>) -> Self
pub fn from_path(path: PathBuf, target: PathTarget) -> Self
pub fn join(&mut self, path: PathBuf, target: PathTarget)
pub fn extract_parent(&self, _temp_directory: &PathBuf)
pub fn delete_parent(&self, _temp_directory: &PathBuf)
pub fn resolve_file(&self) -> Result<PathBuf>
pub fn child_real(&self, child_name: OsString) -> FilePath
pub fn parent(&self) -> Option<FilePath>
Trait Implementations§
source§impl<'de> Deserialize<'de> for FilePath
impl<'de> Deserialize<'de> for FilePath
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for FilePath
impl PartialEq for FilePath
impl Eq for FilePath
Auto Trait Implementations§
impl Freeze for FilePath
impl RefUnwindSafe for FilePath
impl Send for FilePath
impl Sync for FilePath
impl Unpin for FilePath
impl UnwindSafe for FilePath
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