Skip to main content

Entry

Struct Entry 

Source
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: PathBuf

Where 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: String

The ecosystem and the kind, as a row of the tree would say it.

§size: Size

What the scan priced it at, which on a default scan is nothing.

§hidden: bool

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§

Source§

impl Clone for Entry

Source§

fn clone(&self) -> Entry

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Entry

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Entry

Source§

impl PartialEq for Entry

Source§

fn eq(&self, other: &Entry) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.