[][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<'de> Deserialize<'de> for ErrorBody[src]

Auto Trait Implementations

impl Send for ErrorBody

impl Sync for ErrorBody

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]

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

impl<T> Erased for T