pub struct ResourceReference {
pub reference_id: String,
pub resource_id: String,
pub title: String,
pub artist: String,
pub resource_type: String,
pub sequence_number: usize,
}Expand description
Reference information for a resource
Stores metadata about a resource reference generated during streaming, including identifiers, content information, and sequence tracking.
§Example
use ddex_builder::streaming::reference_manager::ResourceReference;
let resource_ref = ResourceReference {
reference_id: "R12345678".to_string(),
resource_id: "USUM71504847".to_string(), // ISRC
title: "Bohemian Rhapsody".to_string(),
artist: "Queen".to_string(),
resource_type: "SoundRecording".to_string(),
sequence_number: 1,
};Fields§
§reference_id: StringUnique reference ID for this resource within the DDEX message
resource_id: StringResource identifier (e.g., ISRC, proprietary ID)
title: StringTitle of the resource/track
artist: StringArtist name for this resource
resource_type: StringType of resource (SoundRecording, Video, Image, Text, etc.)
sequence_number: usizeSequence number indicating order in the message
Trait Implementations§
Source§impl Clone for ResourceReference
impl Clone for ResourceReference
Source§fn clone(&self) -> ResourceReference
fn clone(&self) -> ResourceReference
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 ResourceReference
impl RefUnwindSafe for ResourceReference
impl Send for ResourceReference
impl Sync for ResourceReference
impl Unpin for ResourceReference
impl UnwindSafe for ResourceReference
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