Skip to main content
pub struct RawResponse 
    pub status: u16,
    pub reason: String,
    pub content_type: Option<String>,
    pub body: Bytes,

A response as received, before its status is interpreted.

Kinetica can report an error with a non-2xx status and still send an Avro body that says what went wrong, so the caller needs both; see Kinetica::submit_request_raw, which interprets them.

Fields

status: u16

HTTP status code

reason: String

The reason phrase the server sent with the status, e.g. “Bad Gateway” or “Kinetica is exiting”

content_type: Option<String>

Content-Type header, if present

body: Bytes

Response body

Trait Implementations

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source

fn fmt(&self, f: &mut Formatter<’_>) -> Result

Formats the value using the given formatter. Read more