pub struct TechnicalDetails {
pub file_name: Option<String>,
pub codec_type: Option<String>,
pub bit_rate: Option<String>,
pub sample_rate: Option<String>,
}
Expand description
Technical details for resources
Contains technical specifications for audio/video resources, including encoding information and quality parameters.
§Example
use ddex_builder::messages::update_release::TechnicalDetails;
let tech_details = TechnicalDetails {
file_name: Some("track_01_mastered.flac".to_string()),
codec_type: Some("FLAC".to_string()),
bit_rate: Some("1411".to_string()), // kbps for lossless
sample_rate: Some("44100".to_string()), // Hz (CD quality)
};
let mp3_details = TechnicalDetails {
file_name: Some("track_01_compressed.mp3".to_string()),
codec_type: Some("MP3".to_string()),
bit_rate: Some("320".to_string()), // kbps
sample_rate: Some("44100".to_string()), // Hz
};
Fields§
§file_name: Option<String>
File name of the resource
codec_type: Option<String>
Audio/video codec type (e.g., “MP3”, “FLAC”, “AAC”, “H.264”)
bit_rate: Option<String>
Bit rate in kilobits per second (kbps)
sample_rate: Option<String>
Sample rate in Hz (e.g., “44100”, “48000”, “96000”)
Trait Implementations§
Source§impl Clone for TechnicalDetails
impl Clone for TechnicalDetails
Source§fn clone(&self) -> TechnicalDetails
fn clone(&self) -> TechnicalDetails
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 TechnicalDetails
impl Debug for TechnicalDetails
Source§impl<'de> Deserialize<'de> for TechnicalDetails
impl<'de> Deserialize<'de> for TechnicalDetails
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 TechnicalDetails
impl RefUnwindSafe for TechnicalDetails
impl Send for TechnicalDetails
impl Sync for TechnicalDetails
impl Unpin for TechnicalDetails
impl UnwindSafe for TechnicalDetails
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<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