pub struct MarketplacePurchase {
pub account: MarketplacePurchaseAccount,
pub billing_cycle: String,
pub free_trial_ends_on: Option<DateTime<Utc>>,
pub next_billing_date: Option<String>,
pub on_free_trial: bool,
pub plan: MarketplacePurchasePlan,
pub unit_count: i64,
}
Expand description
MarketplacePurchase
JSON schema
{
"title": "Marketplace Purchase",
"type": "object",
"required": [
"account",
"billing_cycle",
"free_trial_ends_on",
"on_free_trial",
"plan",
"unit_count"
],
"properties": {
"account": {
"type": "object",
"required": [
"id",
"login",
"node_id",
"organization_billing_email",
"type"
],
"properties": {
"id": {
"type": "integer"
},
"login": {
"type": "string"
},
"node_id": {
"type": "string"
},
"organization_billing_email": {
"type": "string"
},
"type": {
"type": "string"
}
},
"additionalProperties": false
},
"billing_cycle": {
"type": "string"
},
"free_trial_ends_on": {
"oneOf": [
{
"type": "string",
"format": "date-time"
},
{
"type": "null"
}
]
},
"next_billing_date": {
"type": "string"
},
"on_free_trial": {
"type": "boolean"
},
"plan": {
"type": "object",
"required": [
"bullets",
"description",
"has_free_trial",
"id",
"monthly_price_in_cents",
"name",
"price_model",
"unit_name",
"yearly_price_in_cents"
],
"properties": {
"bullets": {
"type": "array",
"items": {
"type": "string"
}
},
"description": {
"type": "string"
},
"has_free_trial": {
"type": "boolean"
},
"id": {
"type": "integer"
},
"monthly_price_in_cents": {
"type": "integer"
},
"name": {
"type": "string"
},
"price_model": {
"type": "string"
},
"unit_name": {
"type": [
"string",
"null"
]
},
"yearly_price_in_cents": {
"type": "integer"
}
},
"additionalProperties": false
},
"unit_count": {
"type": "integer"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§account: MarketplacePurchaseAccount
§billing_cycle: String
§free_trial_ends_on: Option<DateTime<Utc>>
§next_billing_date: Option<String>
§on_free_trial: bool
§plan: MarketplacePurchasePlan
§unit_count: i64
Implementations§
Source§impl MarketplacePurchase
impl MarketplacePurchase
pub fn builder() -> MarketplacePurchase
Trait Implementations§
Source§impl Clone for MarketplacePurchase
impl Clone for MarketplacePurchase
Source§fn clone(&self) -> MarketplacePurchase
fn clone(&self) -> MarketplacePurchase
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 MarketplacePurchase
impl Debug for MarketplacePurchase
Source§impl<'de> Deserialize<'de> for MarketplacePurchase
impl<'de> Deserialize<'de> for MarketplacePurchase
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
Source§impl From<&MarketplacePurchase> for MarketplacePurchase
impl From<&MarketplacePurchase> for MarketplacePurchase
Source§fn from(value: &MarketplacePurchase) -> Self
fn from(value: &MarketplacePurchase) -> Self
Converts to this type from the input type.
Source§impl From<MarketplacePurchase> for MarketplacePurchase
impl From<MarketplacePurchase> for MarketplacePurchase
Source§fn from(value: MarketplacePurchase) -> Self
fn from(value: MarketplacePurchase) -> Self
Converts to this type from the input type.
Source§impl Serialize for MarketplacePurchase
impl Serialize for MarketplacePurchase
Auto Trait Implementations§
impl Freeze for MarketplacePurchase
impl RefUnwindSafe for MarketplacePurchase
impl Send for MarketplacePurchase
impl Sync for MarketplacePurchase
impl Unpin for MarketplacePurchase
impl UnwindSafe for MarketplacePurchase
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