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