pub struct Conditions {
pub of_type: Option<TypeName>,
pub has: Option<FieldName>,
pub folder: Option<Folder>,
pub media_type: Option<String>,
pub larger_than: Option<u64>,
}Expand description
The conditions of a rule, which must all hold for it to choose. A rule without any chooses for every file.
Fields§
§of_type: Option<TypeName>The file has this type.
has: Option<FieldName>The file has a value of this field.
folder: Option<Folder>Every place the file was found is in this folder, or below it, on its device.
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.
Implementations§
Trait Implementations§
Source§impl Clone for Conditions
impl Clone for Conditions
Source§impl Debug for Conditions
impl Debug for Conditions
Source§impl Default for Conditions
impl Default for Conditions
impl Eq for Conditions
Source§impl PartialEq for Conditions
impl PartialEq for Conditions
impl StructuralPartialEq for Conditions
Auto Trait Implementations§
impl Forget for Conditions
impl Freeze for Conditions
impl Move for Conditions
impl RefUnwindSafe for Conditions
impl Send for Conditions
impl Sync for Conditions
impl Unpin for Conditions
impl UnsafeUnpin for Conditions
impl UnwindSafe for Conditions
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.