pub struct UpdatedResource {
pub resource_type: String,
pub title: String,
pub artist: String,
pub isrc: Option<String>,
pub duration: Option<String>,
pub file_path: Option<String>,
pub technical_details: Option<TechnicalDetails>,
}
Expand description
Updated resource information
Represents resource data in DDEX update messages, containing all the metadata needed to describe a sound recording, video, or other resource that has been modified in an UpdateReleaseMessage.
§Example
use ddex_builder::messages::update_release::{UpdatedResource, TechnicalDetails};
let resource = UpdatedResource {
resource_type: "SoundRecording".to_string(),
title: "Bohemian Rhapsody (Remastered)".to_string(),
artist: "Queen".to_string(),
isrc: Some("GBUM71505078".to_string()),
duration: Some("PT5M55S".to_string()), // 5 minutes 55 seconds
file_path: Some("/audio/queen/bohemian_rhapsody_remastered.flac".to_string()),
technical_details: Some(TechnicalDetails {
file_name: Some("bohemian_rhapsody_remastered.flac".to_string()),
codec_type: Some("FLAC".to_string()),
bit_rate: Some("1411".to_string()), // kbps
sample_rate: Some("44100".to_string()), // Hz
}),
};
Fields§
§resource_type: String
Type of resource (SoundRecording, Video, Image, Text, etc.)
title: String
Title of the resource/track
artist: String
Artist name for this resource
isrc: Option<String>
International Standard Recording Code (12-character alphanumeric)
duration: Option<String>
Duration in ISO 8601 format (e.g., “PT3M45S” for 3 minutes 45 seconds)
file_path: Option<String>
File path or URL to the resource file
technical_details: Option<TechnicalDetails>
Technical details of the resource (codec, bitrate, etc.)
Trait Implementations§
Source§impl Clone for UpdatedResource
impl Clone for UpdatedResource
Source§fn clone(&self) -> UpdatedResource
fn clone(&self) -> UpdatedResource
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 moreAuto Trait Implementations§
impl Freeze for UpdatedResource
impl RefUnwindSafe for UpdatedResource
impl Send for UpdatedResource
impl Sync for UpdatedResource
impl Unpin for UpdatedResource
impl UnwindSafe for UpdatedResource
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