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
Avro, in binary_encoded_response, which is what the rest of this crate reads.
JSON, in json_encoded_response.
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
impl RecordEncoding
Trait Implementations
impl Clone for RecordEncoding
fn clone(&self) -> RecordEncoding
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RecordEncoding
impl Debug for RecordEncoding
impl Default for RecordEncoding
fn default() -> RecordEncoding
impl Eq for RecordEncoding
impl PartialEq for RecordEncoding
fn eq(&self, other: &RecordEncoding) -> bool
self and other values to be equal, and is used by ==.