pub struct Catalog {
pub tracks: Vec<Track>,
}Expand description
A snapshot of an MSF catalog: the tracks currently in a broadcast.
This is a version-agnostic view. The on-wire details (the catalog version
field, and draft-01’s initDataList/initRef indirection for initialization
data) are handled during (de)serialization, so callers only ever see
resolved tracks with inline Track::init_data. Parsing accepts both
draft-00 and draft-01 catalogs; serializing always emits the newest draft.
Fields§
§tracks: Vec<Track>The tracks in this catalog snapshot.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Catalog
impl<'de> Deserialize<'de> for Catalog
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Catalog
Auto Trait Implementations§
impl Freeze for Catalog
impl RefUnwindSafe for Catalog
impl Send for Catalog
impl Sync for Catalog
impl Unpin for Catalog
impl UnsafeUnpin for Catalog
impl UnwindSafe for Catalog
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