pub struct MarketplacePurchasePurchased {
pub action: MarketplacePurchasePurchasedAction,
pub effective_date: DateTime<Utc>,
pub marketplace_purchase: MarketplacePurchasePurchasedMarketplacePurchase,
pub previous_marketplace_purchase: Option<MarketplacePurchase>,
pub sender: MarketplacePurchasePurchasedSender,
}
Expand description
MarketplacePurchasePurchased
JSON schema
{
"title": "marketplace_purchase purchased event",
"type": "object",
"required": [
"action",
"effective_date",
"marketplace_purchase",
"sender"
],
"properties": {
"action": {
"type": "string",
"enum": [
"purchased"
]
},
"effective_date": {
"type": "string",
"format": "date-time"
},
"marketplace_purchase": {
"allOf": [
{
"$ref": "#/definitions/marketplace-purchase"
},
{
"type": "object",
"required": [
"next_billing_date"
],
"properties": {
"next_billing_date": {
"type": "string",
"format": "date-time"
}
},
"tsAdditionalProperties": false
}
]
},
"previous_marketplace_purchase": {
"$ref": "#/definitions/marketplace-purchase"
},
"sender": {
"type": "object",
"required": [
"avatar_url",
"email",
"events_url",
"followers_url",
"following_url",
"gists_url",
"gravatar_id",
"html_url",
"id",
"login",
"organizations_url",
"received_events_url",
"repos_url",
"site_admin",
"starred_url",
"subscriptions_url",
"type",
"url"
],
"properties": {
"avatar_url": {
"type": "string",
"format": "uri"
},
"email": {
"type": "string"
},
"events_url": {
"type": "string",
"format": "uri-template"
},
"followers_url": {
"type": "string",
"format": "uri"
},
"following_url": {
"type": "string",
"format": "uri-template"
},
"gists_url": {
"type": "string",
"format": "uri-template"
},
"gravatar_id": {
"type": "string"
},
"html_url": {
"type": "string",
"format": "uri"
},
"id": {
"type": "integer"
},
"login": {
"type": "string"
},
"organizations_url": {
"type": "string",
"format": "uri"
},
"received_events_url": {
"type": "string",
"format": "uri"
},
"repos_url": {
"type": "string",
"format": "uri"
},
"site_admin": {
"type": "boolean"
},
"starred_url": {
"type": "string",
"format": "uri-template"
},
"subscriptions_url": {
"type": "string",
"format": "uri"
},
"type": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
},
"additionalProperties": false
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§action: MarketplacePurchasePurchasedAction
§effective_date: DateTime<Utc>
§marketplace_purchase: MarketplacePurchasePurchasedMarketplacePurchase
§previous_marketplace_purchase: Option<MarketplacePurchase>
§sender: MarketplacePurchasePurchasedSender
Implementations§
Trait Implementations§
Source§impl Clone for MarketplacePurchasePurchased
impl Clone for MarketplacePurchasePurchased
Source§fn clone(&self) -> MarketplacePurchasePurchased
fn clone(&self) -> MarketplacePurchasePurchased
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 MarketplacePurchasePurchased
impl Debug for MarketplacePurchasePurchased
Source§impl<'de> Deserialize<'de> for MarketplacePurchasePurchased
impl<'de> Deserialize<'de> for MarketplacePurchasePurchased
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<&MarketplacePurchasePurchased> for MarketplacePurchasePurchased
impl From<&MarketplacePurchasePurchased> for MarketplacePurchasePurchased
Source§fn from(value: &MarketplacePurchasePurchased) -> Self
fn from(value: &MarketplacePurchasePurchased) -> Self
Converts to this type from the input type.
Source§impl From<MarketplacePurchasePurchased> for MarketplacePurchaseEvent
impl From<MarketplacePurchasePurchased> for MarketplacePurchaseEvent
Source§fn from(value: MarketplacePurchasePurchased) -> Self
fn from(value: MarketplacePurchasePurchased) -> Self
Converts to this type from the input type.
Source§impl From<MarketplacePurchasePurchased> for MarketplacePurchasePurchased
impl From<MarketplacePurchasePurchased> for MarketplacePurchasePurchased
Source§fn from(value: MarketplacePurchasePurchased) -> Self
fn from(value: MarketplacePurchasePurchased) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MarketplacePurchasePurchased
impl RefUnwindSafe for MarketplacePurchasePurchased
impl Send for MarketplacePurchasePurchased
impl Sync for MarketplacePurchasePurchased
impl Unpin for MarketplacePurchasePurchased
impl UnwindSafe for MarketplacePurchasePurchased
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