pub struct LocalAsset {
pub path: PathBuf,
pub filename: String,
pub mime: String,
pub asset_type: &'static str,
pub created_at: String,
}Expand description
A single file enumerated from the user’s watched folders.
Fields§
§path: PathBufAbsolute path on disk (used as the synthetic row id).
filename: StringDisplay name (file_name component).
mime: StringMIME type, derived from the extension.
asset_type: &'static str“IMAGE” or “VIDEO”.
created_at: StringISO-8601 modification time, used as created_at for sort consistency
with remote LibraryAsset.
Trait Implementations§
Source§impl Clone for LocalAsset
impl Clone for LocalAsset
Source§fn clone(&self) -> LocalAsset
fn clone(&self) -> LocalAsset
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 moreAuto Trait Implementations§
impl Freeze for LocalAsset
impl RefUnwindSafe for LocalAsset
impl Send for LocalAsset
impl Sync for LocalAsset
impl Unpin for LocalAsset
impl UnsafeUnpin for LocalAsset
impl UnwindSafe for LocalAsset
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> 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