pub struct MarketplacePurchasePlan {
pub bullets: Vec<String>,
pub description: String,
pub has_free_trial: bool,
pub id: i64,
pub monthly_price_in_cents: i64,
pub name: String,
pub price_model: String,
pub unit_name: Option<String>,
pub yearly_price_in_cents: i64,
}
Expand description
MarketplacePurchasePlan
JSON schema
{
"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
}
Fields§
§bullets: Vec<String>
§description: String
§has_free_trial: bool
§id: i64
§monthly_price_in_cents: i64
§name: String
§price_model: String
§unit_name: Option<String>
§yearly_price_in_cents: i64
Implementations§
Source§impl MarketplacePurchasePlan
impl MarketplacePurchasePlan
pub fn builder() -> MarketplacePurchasePlan
Trait Implementations§
Source§impl Clone for MarketplacePurchasePlan
impl Clone for MarketplacePurchasePlan
Source§fn clone(&self) -> MarketplacePurchasePlan
fn clone(&self) -> MarketplacePurchasePlan
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 MarketplacePurchasePlan
impl Debug for MarketplacePurchasePlan
Source§impl<'de> Deserialize<'de> for MarketplacePurchasePlan
impl<'de> Deserialize<'de> for MarketplacePurchasePlan
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<&MarketplacePurchasePlan> for MarketplacePurchasePlan
impl From<&MarketplacePurchasePlan> for MarketplacePurchasePlan
Source§fn from(value: &MarketplacePurchasePlan) -> Self
fn from(value: &MarketplacePurchasePlan) -> Self
Converts to this type from the input type.
Source§impl From<MarketplacePurchasePlan> for MarketplacePurchasePlan
impl From<MarketplacePurchasePlan> for MarketplacePurchasePlan
Source§fn from(value: MarketplacePurchasePlan) -> Self
fn from(value: MarketplacePurchasePlan) -> Self
Converts to this type from the input type.
Source§impl Serialize for MarketplacePurchasePlan
impl Serialize for MarketplacePurchasePlan
Auto Trait Implementations§
impl Freeze for MarketplacePurchasePlan
impl RefUnwindSafe for MarketplacePurchasePlan
impl Send for MarketplacePurchasePlan
impl Sync for MarketplacePurchasePlan
impl Unpin for MarketplacePurchasePlan
impl UnwindSafe for MarketplacePurchasePlan
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