pub struct Filter {Show 22 fields
pub tags: SetFilter,
pub folders: SetFilter,
pub types: Vec<String>,
pub exclude_types: Vec<String>,
pub size: (Option<u64>, Option<u64>),
pub width: (Option<u64>, Option<u64>),
pub height: (Option<u64>, Option<u64>),
pub ratings: HashSet<u8>,
pub shapes: HashSet<Shape>,
pub custom_shape: Option<(f64, f64)>,
pub url: TextFilter,
pub note: TextFilter,
pub comments: TextFilter,
pub color: Option<ColorQuery>,
pub grayscale: bool,
pub imported: DateFilter,
pub created: DateFilter,
pub modified: DateFilter,
pub duration: (Option<f64>, Option<f64>),
pub bpm: (Option<f64>, Option<f64>),
pub cameras: HashSet<String>,
pub font: FontFilter,
}Expand description
The filter panel’s rules. Every active rule must pass.
Fields§
§folders: SetFilter§types: Vec<String>Extensions or group names to include / exclude.
exclude_types: Vec<String>§size: (Option<u64>, Option<u64>)Inclusive byte range.
width: (Option<u64>, Option<u64>)Inclusive pixel ranges.
height: (Option<u64>, Option<u64>)§ratings: HashSet<u8>Ratings to match (0 = unrated), OR-ed.
shapes: HashSet<Shape>§custom_shape: Option<(f64, f64)>The custom W:H shape when it is ticked (see custom_shape_matches);
OR-ed with shapes.
url: TextFilter§note: TextFilter§comments: TextFilterRegion and video comments (Eagle’s annotation rule).
color: Option<ColorQuery>§grayscale: bool§imported: DateFilterDate Imported (modificationTime).
created: DateFilterDate Created (btime); not in Eagle’s panel, only in its smart folders.
modified: DateFilterDate Modified (mtime).
duration: (Option<f64>, Option<f64>)Inclusive range in seconds; each bound is truncated to whole seconds
as Eagle’s parseInt does. Items without a duration fail an active
range.
bpm: (Option<f64>, Option<f64>)Inclusive tempo range in BPM; each bound is truncated to a whole
number as Eagle’s parseInt does. Items without a bpm (or with
0) fail an active range.
cameras: HashSet<String>Camera names (rawMetas.camera), matched exactly, OR-ed.
font: FontFilterImplementations§
Trait Implementations§
impl StructuralPartialEq for Filter
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnsafeUnpin for Filter
impl UnwindSafe for Filter
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().