pub struct MarketplacePurchaseChanged {
pub action: MarketplacePurchaseChangedAction,
pub effective_date: DateTime<Utc>,
pub marketplace_purchase: MarketplacePurchaseChangedMarketplacePurchase,
pub previous_marketplace_purchase: Option<MarketplacePurchase>,
pub sender: MarketplacePurchaseChangedSender,
}
Expand description
MarketplacePurchaseChanged
JSON schema
{
"title": "marketplace_purchase changed event",
"type": "object",
"required": [
"action",
"effective_date",
"marketplace_purchase",
"sender"
],
"properties": {
"action": {
"type": "string",
"enum": [
"changed"
]
},
"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: MarketplacePurchaseChangedAction
§effective_date: DateTime<Utc>
§marketplace_purchase: MarketplacePurchaseChangedMarketplacePurchase
§previous_marketplace_purchase: Option<MarketplacePurchase>
§sender: MarketplacePurchaseChangedSender
Implementations§
Source§impl MarketplacePurchaseChanged
impl MarketplacePurchaseChanged
pub fn builder() -> MarketplacePurchaseChanged
Trait Implementations§
Source§impl Clone for MarketplacePurchaseChanged
impl Clone for MarketplacePurchaseChanged
Source§fn clone(&self) -> MarketplacePurchaseChanged
fn clone(&self) -> MarketplacePurchaseChanged
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 MarketplacePurchaseChanged
impl Debug for MarketplacePurchaseChanged
Source§impl<'de> Deserialize<'de> for MarketplacePurchaseChanged
impl<'de> Deserialize<'de> for MarketplacePurchaseChanged
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<&MarketplacePurchaseChanged> for MarketplacePurchaseChanged
impl From<&MarketplacePurchaseChanged> for MarketplacePurchaseChanged
Source§fn from(value: &MarketplacePurchaseChanged) -> Self
fn from(value: &MarketplacePurchaseChanged) -> Self
Converts to this type from the input type.
Source§impl From<MarketplacePurchaseChanged> for MarketplacePurchaseChanged
impl From<MarketplacePurchaseChanged> for MarketplacePurchaseChanged
Source§fn from(value: MarketplacePurchaseChanged) -> Self
fn from(value: MarketplacePurchaseChanged) -> Self
Converts to this type from the input type.
Source§impl From<MarketplacePurchaseChanged> for MarketplacePurchaseEvent
impl From<MarketplacePurchaseChanged> for MarketplacePurchaseEvent
Source§fn from(value: MarketplacePurchaseChanged) -> Self
fn from(value: MarketplacePurchaseChanged) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MarketplacePurchaseChanged
impl RefUnwindSafe for MarketplacePurchaseChanged
impl Send for MarketplacePurchaseChanged
impl Sync for MarketplacePurchaseChanged
impl Unpin for MarketplacePurchaseChanged
impl UnwindSafe for MarketplacePurchaseChanged
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