[][src]Struct viaduct::msg_types::Request

pub struct Request {
    pub method: i32,
    pub url: String,
    pub body: Option<Vec<u8>>,
    pub headers: HashMap<String, String>,
    pub follow_redirects: bool,
    pub use_caches: bool,
    pub connect_timeout_secs: i32,
    pub read_timeout_secs: i32,
}

Fields

method: i32url: Stringbody: Option<Vec<u8>>headers: HashMap<String, String>follow_redirects: booluse_caches: boolconnect_timeout_secs: i32read_timeout_secs: i32

Implementations

impl Request[src]

pub fn method(&self) -> Method[src]

Returns the enum value of method, or the default if the field is set to an invalid enum value.

pub fn set_method(&mut self, value: Method)[src]

Sets method to the provided enum value.

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

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

Trait Implementations

impl Clone for Request[src]

impl Debug for Request[src]

impl Default for Request[src]

impl From<Request> for Request[src]

impl IntoFfi for Request where
    Request: Message
[src]

type Value = ByteBuffer

This type must be: Read more

impl Message for Request[src]

impl PartialEq<Request> for Request[src]

impl StructuralPartialEq for Request[src]

Auto Trait Implementations

impl RefUnwindSafe for Request

impl Send for Request

impl Sync for Request

impl Unpin for Request

impl UnwindSafe for Request

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.