pub struct DeviceMarks {
pub role: DeviceRole,
pub away: bool,
pub keeps: Option<u64>,
pub waits: Option<u64>,
}Expand description
How a person marked a device, in the personal space.
Fields§
§role: DeviceRoleWhat it does with the files of its spaces: every device is an everyday device unless marked as an archive node.
away: boolWhether it is kept away from home.
keeps: Option<u64>How many bytes of files it keeps as an everyday device, if the person set it; without
it, a tenth of its disk on a computer, and none on a phone
(Library::keeps_up_to).
waits: Option<u64>How many days it waits before it destroys what a purge destroys, as an archive node,
if the person set it, 0 for none; without it, 30 (super::waiting::wait_days).
Trait Implementations§
Source§impl Clone for DeviceMarks
impl Clone for DeviceMarks
impl Copy for DeviceMarks
Source§impl Debug for DeviceMarks
impl Debug for DeviceMarks
Source§impl Default for DeviceMarks
impl Default for DeviceMarks
impl Eq for DeviceMarks
Source§impl PartialEq for DeviceMarks
impl PartialEq for DeviceMarks
impl StructuralPartialEq for DeviceMarks
Auto Trait Implementations§
impl Forget for DeviceMarks
impl Freeze for DeviceMarks
impl Move for DeviceMarks
impl RefUnwindSafe for DeviceMarks
impl Send for DeviceMarks
impl Sync for DeviceMarks
impl Unpin for DeviceMarks
impl UnsafeUnpin for DeviceMarks
impl UnwindSafe for DeviceMarks
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.