pub struct CommercialSubscriptionFull {Show 13 fields
pub self_link: Option<Url>,
pub web_link: Option<Url>,
pub resource_type_link: Option<Url>,
pub http_etag: Option<String>,
pub date_created: DateTime<Utc>,
pub date_expires: DateTime<Utc>,
pub date_last_modified: DateTime<Utc>,
pub date_starts: DateTime<Utc>,
pub distribution_link: Url,
pub is_active: bool,
pub product_link: Url,
pub purchaser_link: Url,
pub registrant_link: Url,
}Expand description
Representation of the commercial_subscription-full resource
Fields§
§self_link: Option<Url>The canonical link to this resource.
web_link: Option<Url>The canonical human-addressable web link to this resource.
resource_type_link: Option<Url>The link to the WADL description of this resource.
http_etag: Option<String>The value of the HTTP ETag for this resource.
date_created: DateTime<Utc>Date Created
The date the first subscription was applied.
date_expires: DateTime<Utc>Expiration Date
The expiration date of the subscription.
date_last_modified: DateTime<Utc>Date Modified
The date the subscription was modified.
date_starts: DateTime<Utc>Beginning of Subscription
The date the subscription starts.
distribution_link: UrlDistribution which has commercial subscription
Distribution for which this commercial subscription is applied.
is_active: boolActive
Whether this subscription is active.
product_link: UrlProduct which has commercial subscription
Project for which this commercial subscription is applied.
purchaser_link: UrlPurchaser
Person who purchased the voucher.
registrant_link: UrlRegistrant
Person who redeemed the voucher.
Implementations§
Source§impl CommercialSubscriptionFull
impl CommercialSubscriptionFull
Sourcepub fn self_(&self) -> Option<CommercialSubscription>
pub fn self_(&self) -> Option<CommercialSubscription>
The canonical link to this resource.
Sourcepub fn set_self_(&mut self, value: Option<CommercialSubscription>)
pub fn set_self_(&mut self, value: Option<CommercialSubscription>)
Set the self_link value.
Sourcepub fn distribution(&self) -> Distribution
pub fn distribution(&self) -> Distribution
Distribution which has commercial subscription
Distribution for which this commercial subscription is applied.
Sourcepub fn set_distribution(&mut self, value: Distribution)
pub fn set_distribution(&mut self, value: Distribution)
Set the distribution_link value.
Sourcepub fn product(&self) -> Project
pub fn product(&self) -> Project
Product which has commercial subscription
Project for which this commercial subscription is applied.
Sourcepub fn set_product(&mut self, value: Project)
pub fn set_product(&mut self, value: Project)
Set the product_link value.
Sourcepub fn set_purchaser(&mut self, value: Person)
pub fn set_purchaser(&mut self, value: Person)
Set the purchaser_link value.
Sourcepub fn registrant(&self) -> Person
pub fn registrant(&self) -> Person
Registrant
Person who redeemed the voucher.
Sourcepub fn set_registrant(&mut self, value: Person)
pub fn set_registrant(&mut self, value: Person)
Set the registrant_link value.
Trait Implementations§
Source§impl Clone for CommercialSubscriptionFull
impl Clone for CommercialSubscriptionFull
Source§fn clone(&self) -> CommercialSubscriptionFull
fn clone(&self) -> CommercialSubscriptionFull
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CommercialSubscriptionFull
impl Debug for CommercialSubscriptionFull
Source§impl<'de> Deserialize<'de> for CommercialSubscriptionFull
impl<'de> Deserialize<'de> for CommercialSubscriptionFull
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>,
Source§impl PartialEq for CommercialSubscriptionFull
impl PartialEq for CommercialSubscriptionFull
Source§fn eq(&self, other: &CommercialSubscriptionFull) -> bool
fn eq(&self, other: &CommercialSubscriptionFull) -> bool
self and other values to be equal, and is used by ==.