pub struct QuarantineEntry {
pub id: String,
pub original_path: PathBuf,
pub quarantine_path: PathBuf,
pub category: Category,
pub bytes: u64,
pub created_at_unix: u64,
pub expires_at_unix: u64,
}Expand description
One restorable artifact held beside its original location.
Fields§
§id: StringStable identifier used by list, restore, and purge commands.
original_path: PathBufOriginal artifact location.
quarantine_path: PathBufHidden adjacent location used during the safety hold.
category: CategoryScanner category validated immediately before the move.
bytes: u64Scan-time allocated bytes retained by the hold.
created_at_unix: u64Creation time as seconds since the Unix epoch.
expires_at_unix: u64Time after which automatic purge is allowed.
Trait Implementations§
Source§impl Clone for QuarantineEntry
impl Clone for QuarantineEntry
Source§fn clone(&self) -> QuarantineEntry
fn clone(&self) -> QuarantineEntry
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 moreSource§impl Debug for QuarantineEntry
impl Debug for QuarantineEntry
Source§impl<'de> Deserialize<'de> for QuarantineEntry
impl<'de> Deserialize<'de> for QuarantineEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for QuarantineEntry
impl RefUnwindSafe for QuarantineEntry
impl Send for QuarantineEntry
impl Sync for QuarantineEntry
impl Unpin for QuarantineEntry
impl UnsafeUnpin for QuarantineEntry
impl UnwindSafe for QuarantineEntry
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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