[][src]Struct garbage::TrashInfo

pub struct TrashInfo {
    pub path: PathBuf,
    pub deletion_date: DateTime<Local>,
    pub deleted_path: PathBuf,
    pub info_path: PathBuf,
}

Fields

path: PathBuf

The original path where this file was located before it was deleted.

deletion_date: DateTime<Local>deleted_path: PathBuf

The location of the deleted file after deletion.

info_path: PathBuf

The location of the info description file.

Methods

impl TrashInfo[src]

pub fn from_files(
    info_path: impl AsRef<Path>,
    deleted_path: impl AsRef<Path>
) -> Result<Self, Error>
[src]

pub fn write(&self, out: impl Write) -> Result<(), Error>[src]

Trait Implementations

impl Debug for TrashInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.