pub struct LibraryAsset {
pub id: String,
pub filename: String,
pub mime_type: String,
pub created_at: String,
pub asset_type: String,
pub thumbhash: Option<String>,
pub width: Option<u32>,
pub height: Option<u32>,
pub checksum: Option<String>,
pub exif_info: Option<ExifInfo>,
}Expand description
Detailed Immich library asset representation.
Fields§
§id: StringUnique asset identifier on the server.
filename: StringOriginal file name.
mime_type: StringOriginal MIME type.
created_at: StringAsset file creation timestamp.
asset_type: StringAsset kind (e.g. "IMAGE" or "VIDEO").
thumbhash: Option<String>Thumbhash representation for preview blur effects.
width: Option<u32>Display width in pixels.
height: Option<u32>Display height in pixels.
checksum: Option<String>Canonical lowercase SHA-1 checksum.
exif_info: Option<ExifInfo>EXIF block; Immich keeps pixel dimensions here, not at the top level.
Trait Implementations§
Source§impl Clone for LibraryAsset
impl Clone for LibraryAsset
Source§fn clone(&self) -> LibraryAsset
fn clone(&self) -> LibraryAsset
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 LibraryAsset
impl Debug for LibraryAsset
Source§impl<'de> Deserialize<'de> for LibraryAsset
impl<'de> Deserialize<'de> for LibraryAsset
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
Source§impl PartialEq for LibraryAsset
impl PartialEq for LibraryAsset
Source§fn eq(&self, other: &LibraryAsset) -> bool
fn eq(&self, other: &LibraryAsset) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LibraryAsset
Auto Trait Implementations§
impl Freeze for LibraryAsset
impl RefUnwindSafe for LibraryAsset
impl Send for LibraryAsset
impl Sync for LibraryAsset
impl Unpin for LibraryAsset
impl UnsafeUnpin for LibraryAsset
impl UnwindSafe for LibraryAsset
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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>
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