Struct pandora_api::json::PandoraResponse[][src]

pub struct PandoraResponse<T> {
    pub stat: PandoraStatus,
    pub result: Option<T>,
    pub message: Option<String>,
    pub code: Option<u32>,
}

A generic type to aid in converting the returned Json document from a Pandora API call into a custom struct T that deserializes the content of the API call result.

Fields

stat: PandoraStatus

The reported status of the call

result: Option<T>

The resulting content of the API call

message: Option<String>

A message explaining the returned code

code: Option<u32>

A numeric error code

Trait Implementations

impl<T: Debug> Debug for PandoraResponse<T>[src]

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

impl<T: DeserializeOwned> Into<Result<T, JsonError>> for PandoraResponse<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for PandoraResponse<T> where
    T: RefUnwindSafe

impl<T> Send for PandoraResponse<T> where
    T: Send

impl<T> Sync for PandoraResponse<T> where
    T: Sync

impl<T> Unpin for PandoraResponse<T> where
    T: Unpin

impl<T> UnwindSafe for PandoraResponse<T> where
    T: UnwindSafe

Blanket Implementations

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

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

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

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

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

impl<T> Instrument 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 = Infallible

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.