pub struct DealRequest {
pub deal_reference: Option<String>,
pub deal_terms: DealTerms,
pub release_references: Vec<String>,
}
Expand description
Commercial deal request
Represents the commercial terms and licensing information for releases. Defines how and where the music can be distributed and monetized.
§Example
use ddex_builder::builder::{DealRequest, DealTerms};
let deal = DealRequest {
deal_reference: Some("DEAL_001".to_string()),
deal_terms: DealTerms {
commercial_model_type: "PayAsYouGoModel".to_string(),
territory_code: vec!["Worldwide".to_string()],
start_date: Some("2024-01-01".to_string()),
},
release_references: vec!["REL_001".to_string()],
};
Fields§
§deal_reference: Option<String>
Reference identifier for this deal within the message
deal_terms: DealTerms
Commercial terms and licensing conditions
release_references: Vec<String>
References to releases covered by this deal
Trait Implementations§
Source§impl Clone for DealRequest
impl Clone for DealRequest
Source§fn clone(&self) -> DealRequest
fn clone(&self) -> DealRequest
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 DealRequest
impl Debug for DealRequest
Source§impl<'de> Deserialize<'de> for DealRequest
impl<'de> Deserialize<'de> for DealRequest
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 DealRequest
impl RefUnwindSafe for DealRequest
impl Send for DealRequest
impl Sync for DealRequest
impl Unpin for DealRequest
impl UnwindSafe for DealRequest
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