Struct google_servicecontrol2::api::Response[][src]

pub struct Response {
    pub backend_latency: Option<String>,
    pub code: Option<String>,
    pub headers: Option<HashMap<String, String>>,
    pub size: Option<String>,
    pub time: Option<String>,
}

This message defines attributes for a typical network response. It generally models semantics of an HTTP response.

This type is not used in any activity, and only used as part of another schema.

Fields

backend_latency: Option<String>

The length of time it takes the backend service to fully respond to a request. Measured from when the destination service starts to send the request to the backend until when the destination service receives the complete response from the backend.

code: Option<String>

The HTTP response status code, such as 200 and 404.

headers: Option<HashMap<String, String>>

The HTTP response headers. If multiple headers share the same key, they must be merged according to HTTP spec. All header keys must be lowercased, because HTTP header keys are case-insensitive.

size: Option<String>

The HTTP response size in bytes. If unknown, it must be -1.

time: Option<String>

The timestamp when the destination service sends the last byte of the response.

Trait Implementations

impl Clone for Response[src]

impl Debug for Response[src]

impl Default for Response[src]

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

impl Part for Response[src]

impl Serialize for Response[src]

Auto Trait Implementations

impl RefUnwindSafe for Response[src]

impl Send for Response[src]

impl Sync for Response[src]

impl Unpin for Response[src]

impl UnwindSafe for Response[src]

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> 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.