pub struct PolicyEdit {
pub name: Option<String>,
pub copies: Option<u32>,
pub away: Option<u32>,
pub archived: Option<u32>,
pub kept: Option<Kept>,
}Expand description
Changes to a policy: each value given replaces what the policy has.
Fields§
§name: Option<String>Its name.
copies: Option<u32>How many copies, at least 1.
away: Option<u32>How many of them outside the home.
archived: Option<u32>How many of them on archive nodes.
kept: Option<Kept>Where devices keep them.
Trait Implementations§
Source§impl Clone for PolicyEdit
impl Clone for PolicyEdit
Source§impl Debug for PolicyEdit
impl Debug for PolicyEdit
Source§impl Default for PolicyEdit
impl Default for PolicyEdit
impl Eq for PolicyEdit
Source§impl PartialEq for PolicyEdit
impl PartialEq for PolicyEdit
impl StructuralPartialEq for PolicyEdit
Auto Trait Implementations§
impl Forget for PolicyEdit
impl Freeze for PolicyEdit
impl Move for PolicyEdit
impl RefUnwindSafe for PolicyEdit
impl Send for PolicyEdit
impl Sync for PolicyEdit
impl Unpin for PolicyEdit
impl UnsafeUnpin for PolicyEdit
impl UnwindSafe for PolicyEdit
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.