Struct gapi_grpc::google::rpc::context::attribute_context::Response[][src]

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

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

Fields

code: i64

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

size: i64

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

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

time: Option<Timestamp>

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

backend_latency: Option<Duration>

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.

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

impl<T> Instrument for T[src]

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]