[][src]Struct a2::response::ErrorBody

pub struct ErrorBody {
    pub reason: ErrorReason,
    pub timestamp: Option<u64>,
}

The response body from APNs. Only available for errors.

Fields

reason: ErrorReason

The error indicating the reason for the failure.

timestamp: Option<u64>

If the value of the ErrorReason is Unregistered, the value of this key is the last time at which APNs confirmed that the device token was no longer valid for the topic.

Stop pushing notifications until the device registers a token with a later timestamp with your provider.

Trait Implementations

impl PartialEq<ErrorBody> for ErrorBody[src]

impl Debug for ErrorBody[src]

impl StructuralPartialEq for ErrorBody[src]

impl<'de> Deserialize<'de> for ErrorBody[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]