pub struct AssetResponse {Show 16 fields
pub id: String,
pub original_file_name: String,
pub file_created_at: String,
pub local_date_time: String,
pub asset_type: AssetType,
pub exif_info: Option<ExifInfo>,
pub checksum: String,
pub is_trashed: bool,
pub is_favorite: bool,
pub is_archived: bool,
pub has_metadata: bool,
pub duration: String,
pub owner_id: String,
pub original_mime_type: Option<String>,
pub duplicate_id: Option<String>,
pub thumbhash: Option<String>,
}Expand description
Asset response from the Immich API.
Fields§
§id: StringUnique asset identifier
original_file_name: StringOriginal filename when uploaded
file_created_at: StringFile creation timestamp (UTC)
local_date_time: StringLocal date/time (timezone-aware)
asset_type: AssetTypeAsset type (image or video)
exif_info: Option<ExifInfo>EXIF metadata (may be absent)
checksum: StringSHA-1 checksum (base64 encoded)
is_trashed: boolWhether the asset is in trash
is_favorite: boolWhether the asset is marked as favorite
is_archived: boolWhether the asset is archived
has_metadata: boolWhether the asset has metadata
duration: StringDuration string (e.g., “0:00:00.000000” for images)
owner_id: StringOwner user ID
original_mime_type: Option<String>Original MIME type (optional)
duplicate_id: Option<String>Duplicate group ID (null if not a duplicate)
thumbhash: Option<String>Thumbhash for quick preview (nullable)
Implementations§
Trait Implementations§
Source§impl Clone for AssetResponse
impl Clone for AssetResponse
Source§fn clone(&self) -> AssetResponse
fn clone(&self) -> AssetResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssetResponse
impl Debug for AssetResponse
Source§impl<'de> Deserialize<'de> for AssetResponse
impl<'de> Deserialize<'de> for AssetResponse
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
Auto Trait Implementations§
impl Freeze for AssetResponse
impl RefUnwindSafe for AssetResponse
impl Send for AssetResponse
impl Sync for AssetResponse
impl Unpin for AssetResponse
impl UnsafeUnpin for AssetResponse
impl UnwindSafe for AssetResponse
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
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
Converts
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>
Converts
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