pub struct MediaEntry {
pub id: Uuid,
pub media_type: MediaType,
pub key: String,
pub file: String,
pub original_name: Option<String>,
pub imported_at: DateTime<Utc>,
pub checksum: Option<String>,
pub metadata: Option<EntryMetadata>,
pub tags: Vec<String>,
}Expand description
A single media entry in the addon registry.
Fields§
§id: UuidStable UUID for the entry.
media_type: MediaTypeLibSharedMedia asset type.
key: StringDisplay key used for registration in LibSharedMedia.
file: StringRelative file path inside the addon directory.
original_name: Option<String>Original file name provided by the user, if retained.
imported_at: DateTime<Utc>Import timestamp in UTC.
checksum: Option<String>Optional content checksum for duplicate detection and auditing.
metadata: Option<EntryMetadata>Optional type-specific metadata extracted during import.
User-defined tags associated with the entry.
Trait Implementations§
Source§impl Clone for MediaEntry
impl Clone for MediaEntry
Source§fn clone(&self) -> MediaEntry
fn clone(&self) -> MediaEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 MediaEntry
impl Debug for MediaEntry
Source§impl<'de> Deserialize<'de> for MediaEntry
impl<'de> Deserialize<'de> for MediaEntry
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 MediaEntry
impl PartialEq for MediaEntry
Source§impl Serialize for MediaEntry
impl Serialize for MediaEntry
impl StructuralPartialEq for MediaEntry
Auto Trait Implementations§
impl Freeze for MediaEntry
impl RefUnwindSafe for MediaEntry
impl Send for MediaEntry
impl Sync for MediaEntry
impl Unpin for MediaEntry
impl UnsafeUnpin for MediaEntry
impl UnwindSafe for MediaEntry
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,
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