[][src]Struct viaduct::msg_types::Response

pub struct Response {
    pub exception_message: Option<String>,
    pub url: Option<String>,
    pub status: Option<i32>,
    pub body: Option<Vec<u8>>,
    pub headers: HashMap<String, String>,
}

Fields

exception_message: Option<String>

If this is present, nothing else is.

url: Option<String>status: Option<i32>body: Option<Vec<u8>>headers: HashMap<String, String>

Implementations

impl Response[src]

pub fn exception_message(&self) -> &str[src]

Returns the value of exception_message, or the default value if exception_message is unset.

pub fn url(&self) -> &str[src]

Returns the value of url, or the default value if url is unset.

pub fn status(&self) -> i32[src]

Returns the value of status, or the default value if status is unset.

pub fn body(&self) -> &[u8][src]

Returns the value of body, or the default value if body is unset.

Trait Implementations

impl Clone for Response[src]

impl Debug for Response[src]

impl Default for Response[src]

impl Message for Response[src]

impl PartialEq<Response> for Response[src]

impl StructuralPartialEq for Response[src]

Auto Trait Implementations

impl RefUnwindSafe for Response

impl Send for Response

impl Sync for Response

impl Unpin for Response

impl UnwindSafe for Response

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> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.