pub struct AudioInfo {
pub replaygain_track_peak: Option<f64>,
pub replaygain_track_gain: Option<f64>,
}Expand description
Audio information model containing replay gain data
This struct contains audio-specific information such as replay gain values that help normalize playback volume across different tracks.
§Examples
use qobuz_api_rust::models::AudioInfo;
let audio_info = AudioInfo {
replaygain_track_peak: Some(0.98),
replaygain_track_gain: Some(-2.5),
};Fields§
§replaygain_track_peak: Option<f64>Peak amplitude value for replay gain normalization
replaygain_track_gain: Option<f64>Gain value in dB for replay gain normalization
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AudioInfo
impl<'de> Deserialize<'de> for AudioInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AudioInfo
impl RefUnwindSafe for AudioInfo
impl Send for AudioInfo
impl Sync for AudioInfo
impl Unpin for AudioInfo
impl UnwindSafe for AudioInfo
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