pub struct ReadConfig {
pub read_meta_items: bool,
pub read_image_data: bool,
pub read_chapter_list: bool,
pub read_chapter_track: bool,
pub read_audio_info: bool,
pub chpl_timescale: ChplTimescale,
}Expand description
Configure what kind of data should be rad
The item list stores tags such as the artist, album, title, and also the cover art of a song. And there are two separate ways of storing chapter information:
- A chapter list
- A chapter track
Fields§
§read_meta_items: boolWheter the metatdata item list will be read.
read_image_data: boolWheter image data will be read, mostly for performance reasons.
If disabled, images will still show up as empty Data.
read_chapter_list: boolWheter chapter list information will be read.
read_chapter_track: boolWheter chapter track information will be read.
read_audio_info: boolWheter audio information will be read.
Even if disabled, the AudioInfo::duration will be read.
chpl_timescale: ChplTimescaleThe timescale that is used to scale time for chapter list (chpl) atoms.
Implementations§
Source§impl ReadConfig
impl ReadConfig
Sourcepub const DEFAULT: ReadConfig
pub const DEFAULT: ReadConfig
The default configuration for reading tags.
Sourcepub const NONE: ReadConfig
pub const NONE: ReadConfig
A configuration that would read no data at all.
use mp4ameta::ReadConfig;
let cfg = ReadConfig {
read_meta_items: true,
read_image_data: true,
..ReadConfig::NONE
};Trait Implementations§
Source§impl Clone for ReadConfig
impl Clone for ReadConfig
Source§fn clone(&self) -> ReadConfig
fn clone(&self) -> ReadConfig
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 ReadConfig
impl Debug for ReadConfig
Source§impl Default for ReadConfig
impl Default for ReadConfig
Source§impl PartialEq for ReadConfig
impl PartialEq for ReadConfig
impl Eq for ReadConfig
impl StructuralPartialEq for ReadConfig
Auto Trait Implementations§
impl Freeze for ReadConfig
impl RefUnwindSafe for ReadConfig
impl Send for ReadConfig
impl Sync for ReadConfig
impl Unpin for ReadConfig
impl UnwindSafe for ReadConfig
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