pub struct PlanTarget {
pub path: PathBuf,
pub requested: PathBuf,
pub size: Size,
pub is_symlink: bool,
pub checkout: bool,
}Expand description
A target that survived every check, with its path resolved.
Fields§
§path: PathBufThe resolved path: no .., no symlinked ancestor, and proved to be under the root.
This — never the requested path — is what the deleter unlinks.
requested: PathBufWhat the caller asked for, kept so a report can name what the user typed.
size: SizeWhat the scan knew about its size.
is_symlink: boolWhether the target is itself a symlink, in which case removing it is one unlink.
checkout: boolWhether this target is a linked work tree the plan has approved removing whole.
The only thing that lets a sweep past its own checkout refusal, and it licenses that exactly once: at this target’s own root. A checkout nested anywhere inside is refused as it always was, because nothing has been proved about that one.
Trait Implementations§
Source§impl Clone for PlanTarget
impl Clone for PlanTarget
Source§fn clone(&self) -> PlanTarget
fn clone(&self) -> PlanTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PlanTarget
impl RefUnwindSafe for PlanTarget
impl Send for PlanTarget
impl Sync for PlanTarget
impl Unpin for PlanTarget
impl UnsafeUnpin for PlanTarget
impl UnwindSafe for PlanTarget
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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