Skip to main content
pub enum RecordEncoding 
    Binary,
    Json,
    Arrow,

The encoding a retrieval asks the server to answer in.

Only the undecoded retrievals take one, since the decoded ones read the Avro the server sends by default: RecordRetriever::get_columns_by_key_raw hands the payload back as it arrived, so a caller that reads Arrow or JSON itself does not pay for a decode it would only undo.

Variants

Binary

Avro, in binary_encoded_response, which is what the rest of this crate reads.

Json

JSON, in json_encoded_response.

Arrow

An Arrow IPC stream, in binary_encoded_response.

/get/records/bycolumn answers any table this way. /get/records takes it only for geometry columns, which is why the whole-record retrievals do not offer a choice.

Implementations

Source

pub fn as_str(self) -> &‘static str

Returns the name the server knows this encoding by.

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
Returns the “default value” for a type. Read more
Source

fn eq(&self, other: &RecordEncoding) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.