pub struct MediaFile {Show 13 fields
pub id: Uuid,
pub path: PathBuf,
pub filename: String,
pub duration: Option<f64>,
pub timecode_start: Option<Timecode>,
pub width: Option<u32>,
pub height: Option<u32>,
pub fps: Option<FrameRate>,
pub size: Option<u64>,
pub md5: Option<String>,
pub xxhash: Option<String>,
pub metadata: Option<String>,
pub cataloged_at: DateTime<Utc>,
}Expand description
Media file reference.
Fields§
§id: UuidUnique identifier.
path: PathBufFile path.
filename: StringFile name.
duration: Option<f64>Duration in seconds.
timecode_start: Option<Timecode>Start timecode.
width: Option<u32>Width in pixels.
height: Option<u32>Height in pixels.
fps: Option<FrameRate>Frame rate.
size: Option<u64>File size in bytes.
md5: Option<String>MD5 checksum.
xxhash: Option<String>XXHash checksum.
metadata: Option<String>Additional metadata (JSON).
cataloged_at: DateTime<Utc>When the file was cataloged.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MediaFile
impl<'de> Deserialize<'de> for MediaFile
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 MediaFile
impl RefUnwindSafe for MediaFile
impl Send for MediaFile
impl Sync for MediaFile
impl Unpin for MediaFile
impl UnsafeUnpin for MediaFile
impl UnwindSafe for MediaFile
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