pub struct NewRule {
pub policy: EntityId,
pub of_type: Option<TypeName>,
pub has: Option<FieldName>,
pub folder: Option<PathBuf>,
pub media_type: Option<String>,
pub larger_than: Option<u64>,
pub asks_above: Option<u64>,
}Expand description
A rule to add.
Fields§
§policy: EntityIdThe policy it chooses.
of_type: Option<TypeName>The file has this type.
has: Option<FieldName>The file has a value of this field.
folder: Option<PathBuf>Every place the file was found is in this folder on this device, or below it.
media_type: Option<String>The file’s media type is this one, or starts with it.
larger_than: Option<u64>The file is larger than this many bytes.
asks_above: Option<u64>Adding a larger file that the rule chooses for asks whether it can be got again.
Implementations§
Trait Implementations§
impl Eq for NewRule
impl StructuralPartialEq for NewRule
Auto Trait Implementations§
impl Forget for NewRule
impl Freeze for NewRule
impl Move for NewRule
impl RefUnwindSafe for NewRule
impl Send for NewRule
impl Sync for NewRule
impl Unpin for NewRule
impl UnsafeUnpin for NewRule
impl UnwindSafe for NewRule
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.