pub struct Backup {
pub id: EntityId,
pub name: String,
pub folder: String,
pub spaces: Vec<SpaceId>,
pub policies: Vec<EntityId>,
pub away: bool,
pub waits: Option<u64>,
}Expand description
One of the person’s backups, as their personal space records it.
Fields§
§id: EntityIdIts record’s ID, which its folder names.
name: StringIts name.
folder: StringIts folder’s path from the folder that its drive or share is mounted at.
spaces: Vec<SpaceId>The spaces it holds.
policies: Vec<EntityId>The policies whose files it keeps; none for every policy’s.
away: boolWhether it is kept away from home.
waits: Option<u64>How many days it waits before it destroys what a purge destroys, if its owner set it,
0 for none; without it, 30 (super::waiting::backup_wait_days).
Trait Implementations§
impl Eq for Backup
impl StructuralPartialEq for Backup
Auto Trait Implementations§
impl Forget for Backup
impl Freeze for Backup
impl Move for Backup
impl RefUnwindSafe for Backup
impl Send for Backup
impl Sync for Backup
impl Unpin for Backup
impl UnsafeUnpin for Backup
impl UnwindSafe for Backup
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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
Compare self to
key and return true if they are equal.