pub struct DealTerms {
pub commercial_model_type: String,
pub territory_code: Vec<String>,
pub start_date: Option<String>,
}Expand description
Commercial deal terms
Defines the specific commercial and territorial terms of a licensing deal. These terms control how the music can be distributed and monetized.
§Example
use ddex_builder::builder::DealTerms;
let terms = DealTerms {
commercial_model_type: "SubscriptionModel".to_string(),
territory_code: vec!["US".to_string(), "CA".to_string(), "MX".to_string()],
start_date: Some("2024-01-01".to_string()),
};Fields§
§commercial_model_type: StringType of commercial model (e.g., “PayAsYouGoModel”, “SubscriptionModel”, “FreeOfChargeModel”)
territory_code: Vec<String>Territory codes where deal applies (ISO 3166-1 alpha-2 codes or “Worldwide”)
start_date: Option<String>Deal start date in YYYY-MM-DD format (optional)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DealTerms
impl<'de> Deserialize<'de> for DealTerms
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 DealTerms
impl RefUnwindSafe for DealTerms
impl Send for DealTerms
impl Sync for DealTerms
impl Unpin for DealTerms
impl UnwindSafe for DealTerms
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