pub struct Entry {
pub id: Option<NodeId>,
pub path: PathBuf,
pub target: Option<PathBuf>,
pub kind: Option<Kind>,
pub label: String,
pub size: Size,
pub hidden: bool,
pub kept: Option<String>,
}Expand description
One line of the batch a confirmation lists.
Everything a reader needs in order to recognise a directory they marked several views ago: where it is, what it is, what it is worth, whether they can currently see it, and whether the safety model is going to refuse it anyway.
Fields§
§id: Option<NodeId>Which directory, by identity. What space on this line acts on, for the reason every
other action in this file names a NodeId: the tree moves while a dialog is up.
None for a path the tree no longer holds, which is a line that can be read and not
unmarked — the honest state rather than a line that quietly does nothing.
path: PathBufWhere it is, spelled as the scan spelled it — which is what the tree holds and what a reader recognises.
target: Option<PathBuf>The resolved path the deleter would unlink, when this line is going to be removed
at all. None on a line the safety model refused.
Two paths rather than one because the planner resolves .. and symlinked ancestors,
and on macOS that is not exotic: a scan of /var/… plans against /private/var/….
Taking a line out of the batch has to name the same path the deed does, or the deed
would keep a directory the listing had stopped showing.
kind: Option<Kind>What it is, which is also what the listing groups by. None is the tier-two claim’s
own content rather than a gap: nothing named it.
label: StringThe ecosystem and the kind, as a row of the tree would say it.
size: SizeWhat the scan priced it at, which on a default scan is nothing.
Whether the current view is hiding it. The point of the screen: a reader marks broadly under one view, narrows, forgets, and is about to confirm a deletion whose contents they cannot see.
kept: Option<String>Why the safety model is going to leave it standing, if it is.
Said here, before the reader commits, rather than in the post-run report — which is the same refusal reporting, moved to the moment it can still change a decision.
Trait Implementations§
impl Eq for Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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