[][src]Struct socketlabz::response::Response

pub struct Response<'a> {
    pub error_code: PostMessageErrorCode,
    pub transaction_receipt: Option<Cow<'a, str>>,
    pub message_results: Option<Vec<MessageResult<'a>>>,
}

Representation of the SocketLabs PostResponse.

Fields

error_code: PostMessageErrorCode

The success or failure details of the overall injection request.

transaction_receipt: Option<Cow<'a, str>>

A unique key generated if an unexpected error occurs during injection that can be used by SocketLabs support to troubleshoot the issue.

message_results: Option<Vec<MessageResult<'a>>>

An array of message result objects for messages that failed or have bad recipients. If there were no errors this response is empty.

Trait Implementations

impl<'a> Debug for Response<'a>[src]

impl<'de, 'a> Deserialize<'de> for Response<'a>[src]

Auto Trait Implementations

impl<'a> Send for Response<'a>

impl<'a> Sync for Response<'a>

Blanket Implementations

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

impl<T> From<T> for 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.

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

impl<T> Borrow<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]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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