pub struct FileRestorationPermissionValidation {
pub target_path: PathBuf,
pub target_exists: bool,
pub parent_directory: Option<PathBuf>,
pub parent_directory_exists: bool,
pub required_permissions: FilePermissions,
pub violations: Vec<PermissionViolation>,
}Expand description
Result of file restoration permission validation
Fields§
§target_path: PathBufTarget file path
target_exists: boolWhether target file exists
parent_directory: Option<PathBuf>Parent directory path
parent_directory_exists: boolWhether parent directory exists
required_permissions: FilePermissionsRequired permissions for restoration
violations: Vec<PermissionViolation>List of permission violations
Implementations§
Source§impl FileRestorationPermissionValidation
impl FileRestorationPermissionValidation
pub fn new(target_path: PathBuf) -> Self
pub fn add_violation( &mut self, violation_type: PermissionViolationType, message: String, )
Sourcepub fn violation_messages(&self) -> Vec<&str>
pub fn violation_messages(&self) -> Vec<&str>
Returns all violation messages
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileRestorationPermissionValidation
impl RefUnwindSafe for FileRestorationPermissionValidation
impl Send for FileRestorationPermissionValidation
impl Sync for FileRestorationPermissionValidation
impl Unpin for FileRestorationPermissionValidation
impl UnwindSafe for FileRestorationPermissionValidation
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more