Struct triseratops::tag::markers::Markers
source · pub struct Markers {
pub version: Version,
pub entries: Vec<Marker>,
pub track_color: Color,
}
Expand description
Represents the Serato Markers_
tag.
It contains the the first 5 cue points, the first 9 loops and the color of the track.
This seems to be a legacy tag, since it lacks some information such as cue labels and all information of the Serato Markers_
tag is also part of the [Serato Markers2
](super::markers2] tag.
If the two tags contradict each other, Serato DJ will prefer the data from the Serato Markers_
tag.
Example
use triseratops::tag::{Markers, format::id3::ID3Tag};
// First, read the tag data from the ID3 GEOB tag (the tag name can be accessed using the
// Markers::ID3_TAG), then parse the data like this:
fn parse(data: &[u8]) {
let content = Markers::parse_id3(data).expect("Failed to parse data!");
println!("{:?}", content);
}
Fields§
§version: Version
The tag version.
entries: Vec<Marker>
The marker entries.
track_color: Color
The color of the track in Serato’s library view.
Implementations§
Trait Implementations§
source§impl EnvelopedTag for Markers
impl EnvelopedTag for Markers
source§impl MP4Tag for Markers
impl MP4Tag for Markers
source§const MP4_ATOM_FREEFORM_NAME: &'static str = "markers"
const MP4_ATOM_FREEFORM_NAME: &'static str = "markers"
The mean part of the freeform
MP4_ATOM
that this data is stored in.fn parse_mp4(input: &[u8]) -> Result<Self, Error>
fn write_mp4(&self, writer: &mut impl Write) -> Result<usize, Error>
source§const MP4_ATOM_FREEFORM_MEAN: &'static str = "com.serato.dj"
const MP4_ATOM_FREEFORM_MEAN: &'static str = "com.serato.dj"
The mean part of the freeform
MP4_ATOM
that this data is stored in.Auto Trait Implementations§
impl RefUnwindSafe for Markers
impl Send for Markers
impl Sync for Markers
impl Unpin for Markers
impl UnwindSafe for Markers
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