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