pub struct CanceledStateContext {
pub developer_initiated_cancellation: Option<DeveloperInitiatedCancellation>,
pub replacement_cancellation: Option<ReplacementCancellation>,
pub system_initiated_cancellation: Option<SystemInitiatedCancellation>,
pub user_initiated_cancellation: Option<UserInitiatedCancellation>,
}Expand description
Information specific to a subscription in the SUBSCRIPTION_STATE_CANCELED or SUBSCRIPTION_STATE_EXPIRED state.
This type is not used in any activity, and only used as part of another schema.
Fields§
§developer_initiated_cancellation: Option<DeveloperInitiatedCancellation>Subscription was canceled by the developer.
replacement_cancellation: Option<ReplacementCancellation>Subscription was replaced by a new subscription.
system_initiated_cancellation: Option<SystemInitiatedCancellation>Subscription was canceled by the system, for example because of a billing problem.
user_initiated_cancellation: Option<UserInitiatedCancellation>Subscription was canceled by user.
Trait Implementations§
Source§impl Clone for CanceledStateContext
impl Clone for CanceledStateContext
Source§fn clone(&self) -> CanceledStateContext
fn clone(&self) -> CanceledStateContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CanceledStateContext
impl Debug for CanceledStateContext
Source§impl Default for CanceledStateContext
impl Default for CanceledStateContext
Source§fn default() -> CanceledStateContext
fn default() -> CanceledStateContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CanceledStateContext
impl<'de> Deserialize<'de> for CanceledStateContext
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
impl Part for CanceledStateContext
Auto Trait Implementations§
impl Freeze for CanceledStateContext
impl RefUnwindSafe for CanceledStateContext
impl Send for CanceledStateContext
impl Sync for CanceledStateContext
impl Unpin for CanceledStateContext
impl UnsafeUnpin for CanceledStateContext
impl UnwindSafe for CanceledStateContext
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