pub struct TrackMeta {Show 21 fields
pub title: String,
pub artist: String,
pub album_artist: Option<String>,
pub album: String,
pub date: Option<String>,
pub disc: Option<i32>,
pub track_number: Option<i32>,
pub genre: Option<String>,
pub label: Option<String>,
pub duration_ms: Option<i64>,
pub codec: Option<String>,
pub sample_rate: Option<i32>,
pub bit_depth: Option<i32>,
pub channels: Option<i32>,
pub bitrate: Option<i32>,
pub size_bytes: Option<i64>,
pub mtime: Option<i64>,
pub path: Option<String>,
pub source: String,
pub remote_id: Option<String>,
pub remote_url: Option<String>,
}Expand description
Metadata for inserting/updating a track.
Fields§
§title: String§artist: String§album_artist: Option<String>§album: String§date: Option<String>§disc: Option<i32>§track_number: Option<i32>§genre: Option<String>§label: Option<String>§duration_ms: Option<i64>§codec: Option<String>§sample_rate: Option<i32>§bit_depth: Option<i32>§channels: Option<i32>§bitrate: Option<i32>§size_bytes: Option<i64>§mtime: Option<i64>§path: Option<String>§source: String§remote_id: Option<String>§remote_url: Option<String>Trait Implementations§
Auto Trait Implementations§
impl Freeze for TrackMeta
impl RefUnwindSafe for TrackMeta
impl Send for TrackMeta
impl Sync for TrackMeta
impl Unpin for TrackMeta
impl UnsafeUnpin for TrackMeta
impl UnwindSafe for TrackMeta
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<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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