pub struct MetadataSearchFilters {Show 35 fields
pub original_file_name: Option<String>,
pub description: Option<String>,
pub ocr: Option<String>,
pub asset_type: Option<String>,
pub taken_after: Option<String>,
pub taken_before: Option<String>,
pub make: Option<String>,
pub model: Option<String>,
pub lens_model: Option<String>,
pub country: Option<String>,
pub state: Option<String>,
pub city: Option<String>,
pub is_favorite: Option<bool>,
pub is_archived: Option<bool>,
pub is_motion: Option<bool>,
pub is_not_in_album: Option<bool>,
pub with_exif: Option<bool>,
pub with_deleted: Option<bool>,
pub person_ids: Option<Vec<String>>,
pub tag_ids: Option<Vec<String>>,
pub order: Option<SortOrder>,
pub rating: Option<u32>,
pub album_ids: Option<Vec<String>>,
pub is_encoded: Option<bool>,
pub is_offline: Option<bool>,
pub library_id: Option<String>,
pub created_after: Option<String>,
pub created_before: Option<String>,
pub updated_after: Option<String>,
pub updated_before: Option<String>,
pub trashed_after: Option<String>,
pub trashed_before: Option<String>,
pub visibility: Option<String>,
pub with_people: Option<bool>,
pub with_stacked: Option<bool>,
}Expand description
Structured filters passed down search operations.
Fields§
§original_file_name: Option<String>Inferred or original file name.
description: Option<String>User description or caption search query.
ocr: Option<String>Match against OCR-extracted text inside images. Distinct from
description (user-set caption) — Immich indexes recognised text
during ML processing and exposes it as its own filter dimension on
both MetadataSearchDto and SmartSearchDto.
asset_type: Option<String>"IMAGE" or "VIDEO"; None returns both.
taken_after: Option<String>ISO 8601 inclusive lower bound on fileCreatedAt.
taken_before: Option<String>ISO 8601 inclusive upper bound on fileCreatedAt.
make: Option<String>Camera make.
model: Option<String>Camera model.
lens_model: Option<String>Camera lens model.
country: Option<String>City location.
state: Option<String>State location.
city: Option<String>City location.
is_favorite: Option<bool>True to only return favorited assets.
is_archived: Option<bool>True to only return archived assets.
is_motion: Option<bool>True to only return motion photos.
is_not_in_album: Option<bool>True to only return assets not associated with any albums.
with_exif: Option<bool>True to only return assets having valid EXIF.
with_deleted: Option<bool>True to also return deleted assets.
person_ids: Option<Vec<String>>List of person identifiers to match.
tag_ids: Option<Vec<String>>List of tag identifiers to match.
order: Option<SortOrder>Desired sorting order.
rating: Option<u32>Star rating (1-5).
album_ids: Option<Vec<String>>Restrict results to specific albums.
is_encoded: Option<bool>True to only return encoded (transcoded) assets.
is_offline: Option<bool>True to only return offline assets.
library_id: Option<String>Restrict to a specific external library.
created_after: Option<String>ISO 8601 lower bound on asset creation timestamp.
created_before: Option<String>ISO 8601 upper bound on asset creation timestamp.
updated_after: Option<String>ISO 8601 lower bound on asset update timestamp.
updated_before: Option<String>ISO 8601 upper bound on asset update timestamp.
trashed_after: Option<String>ISO 8601 lower bound on trashed timestamp.
trashed_before: Option<String>ISO 8601 upper bound on trashed timestamp.
visibility: Option<String>Visibility filter: “archive”, “timeline”, “hidden”, “locked”.
with_people: Option<bool>True to include person face data in results.
with_stacked: Option<bool>True to include stacked asset data in results.
Trait Implementations§
Source§impl Clone for MetadataSearchFilters
impl Clone for MetadataSearchFilters
Source§fn clone(&self) -> MetadataSearchFilters
fn clone(&self) -> MetadataSearchFilters
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MetadataSearchFilters
impl Debug for MetadataSearchFilters
Source§impl Default for MetadataSearchFilters
impl Default for MetadataSearchFilters
Source§fn default() -> MetadataSearchFilters
fn default() -> MetadataSearchFilters
impl Eq for MetadataSearchFilters
Source§impl PartialEq for MetadataSearchFilters
impl PartialEq for MetadataSearchFilters
Source§fn eq(&self, other: &MetadataSearchFilters) -> bool
fn eq(&self, other: &MetadataSearchFilters) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for MetadataSearchFilters
impl Serialize for MetadataSearchFilters
impl StructuralPartialEq for MetadataSearchFilters
Auto Trait Implementations§
impl Freeze for MetadataSearchFilters
impl RefUnwindSafe for MetadataSearchFilters
impl Send for MetadataSearchFilters
impl Sync for MetadataSearchFilters
impl Unpin for MetadataSearchFilters
impl UnsafeUnpin for MetadataSearchFilters
impl UnwindSafe for MetadataSearchFilters
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
§impl<T, Ctx> BundleDefault<Ctx> for Twhere
T: Default,
impl<T, Ctx> BundleDefault<Ctx> for Twhere
T: Default,
§fn default_with_context(_: Ctx) -> T
fn default_with_context(_: Ctx) -> 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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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