pub struct WorkspaceRule {
pub match: RuleMatch,
pub pool: Option<u32>,
pub overflow: Option<Bound>,
pub delete: Option<Vec<PathBuf>>,
pub maintain: Option<Maintenance>,
}Expand description
One rule: what it matches, and which parts of the policy it sets.
Fields§
§match: RuleMatchWhat this rule applies to, in the rules file’s own vocabulary.
pool: Option<u32>The pool size. Unset falls to the default.
overflow: Option<Bound>The overflow bound. Unset falls to the default.
delete: Option<Vec<PathBuf>>The paths deleted on return. Unset falls to the default; set, it replaces it.
maintain: Option<Maintenance>What maintenance is. Unset falls to the default.
Trait Implementations§
Source§impl Clone for WorkspaceRule
impl Clone for WorkspaceRule
Source§impl Debug for WorkspaceRule
impl Debug for WorkspaceRule
Source§impl<'de> Deserialize<'de> for WorkspaceRule
impl<'de> Deserialize<'de> for WorkspaceRule
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
impl Eq for WorkspaceRule
Source§impl PartialEq for WorkspaceRule
impl PartialEq for WorkspaceRule
Source§impl Serialize for WorkspaceRule
impl Serialize for WorkspaceRule
impl StructuralPartialEq for WorkspaceRule
Auto Trait Implementations§
impl Freeze for WorkspaceRule
impl RefUnwindSafe for WorkspaceRule
impl Send for WorkspaceRule
impl Sync for WorkspaceRule
impl Unpin for WorkspaceRule
impl UnsafeUnpin for WorkspaceRule
impl UnwindSafe for WorkspaceRule
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.