#[non_exhaustive]pub enum TrackInfoTag {
Make,
Model,
Software,
CreateDate,
DurationMs,
ImageWidth,
ImageHeight,
GpsIso6709,
Author,
}
Expand description
Try to keep the tag name consistent with crate::ExifTag
, and add some
unique to video/audio, such as DurationMs
.
Different variants of TrackInfoTag
may have different value types, please
refer to the documentation of each variant.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Make
Its value is an EntryValue::Text
.
Model
Its value is an EntryValue::Text
.
Software
Its value is an EntryValue::Text
.
CreateDate
Its value is an EntryValue::Time
.
DurationMs
Duration in millisecond, its value is an EntryValue::U64
.
ImageWidth
Its value is an EntryValue::U32
.
ImageHeight
Its value is an EntryValue::U32
.
GpsIso6709
Its value is an EntryValue::Text
, location presented in ISO6709.
If you need a parsed GPSInfo
which provides more detailed GPS info,
please use TrackInfo::get_gps_info
.
Author
Its value is an EntryValue::Text
.
Trait Implementations§
Source§impl Clone for TrackInfoTag
impl Clone for TrackInfoTag
Source§fn clone(&self) -> TrackInfoTag
fn clone(&self) -> TrackInfoTag
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 TrackInfoTag
impl Debug for TrackInfoTag
Source§impl Display for TrackInfoTag
impl Display for TrackInfoTag
Source§impl From<TrackInfoTag> for &str
impl From<TrackInfoTag> for &str
Source§fn from(value: TrackInfoTag) -> Self
fn from(value: TrackInfoTag) -> Self
Converts to this type from the input type.
Source§impl Hash for TrackInfoTag
impl Hash for TrackInfoTag
Source§impl Ord for TrackInfoTag
impl Ord for TrackInfoTag
Source§fn cmp(&self, other: &TrackInfoTag) -> Ordering
fn cmp(&self, other: &TrackInfoTag) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TrackInfoTag
impl PartialEq for TrackInfoTag
Source§impl PartialOrd for TrackInfoTag
impl PartialOrd for TrackInfoTag
Source§impl TryFrom<&str> for TrackInfoTag
impl TryFrom<&str> for TrackInfoTag
impl Copy for TrackInfoTag
impl Eq for TrackInfoTag
impl StructuralPartialEq for TrackInfoTag
Auto Trait Implementations§
impl Freeze for TrackInfoTag
impl RefUnwindSafe for TrackInfoTag
impl Send for TrackInfoTag
impl Sync for TrackInfoTag
impl Unpin for TrackInfoTag
impl UnwindSafe for TrackInfoTag
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