Skip to main content
pub struct ShowTableResponse 

    pub table_name: String,
    pub table_names: Vec<String>,
    pub table_descriptions: Vec<Vec<String>>,
    pub type_ids: Vec<String>,
    pub type_schemas: Vec<String>,
    pub type_labels: Vec<String>,
    pub properties: Vec<HashMap<String, Vec<String>>>,
    pub additional_info: Vec<HashMap<String, String>>,
    pub sizes: Vec<i64>,
    pub full_sizes: Vec<i64>,
    pub join_sizes: Vec<f64>,
    pub total_size: i64,
    pub total_full_size: i64,
    pub info: HashMap<String, String>,

The response from the /show/table endpoint.

Fields

table_name: String

Value of table_name.

table_names: Vec<String>

If table_name is a table or view, then the single element of the array is table_name. If table_name is a schema and show_children is set to true, then this array is populated with the names of all tables and views in the given schema; if show_children is false, then this array will only include the schema name itself. If table_name is an empty string, then the array contains the names of all tables in the user’s default schema.

table_descriptions: Vec<Vec<String>>

List of descriptions for the respective tables in table_names.

type_ids: Vec<String>

Type IDs of the respective tables in table_names.

type_schemas: Vec<String>

Type schemas of the respective tables in table_names.

type_labels: Vec<String>

Type labels of the respective tables in table_names.

properties: Vec<HashMap<String, Vec<String>>>

Property maps of the respective tables in table_names.

additional_info: Vec<HashMap<String, String>>

Additional information about the respective tables in table_names.

sizes: Vec<i64>

If get_sizes is true, an array containing the number of records of each corresponding table in table_names. Otherwise, an empty array.

full_sizes: Vec<i64>

If get_sizes is true, an array containing the number of records of each corresponding table in table_names (same values as sizes). Otherwise, an empty array.

join_sizes: Vec<f64>

If get_sizes is true, an array containing the number of unfiltered records in the cross product of the sub-tables of each corresponding join-table in table_names. For simple tables, this number will be the same as sizes. For join-tables, this value gives the number of joined-table rows that must be processed by any aggregate functions operating on the table. Otherwise, (if get_sizes is false), an empty array.

total_size: i64

If get_sizes is true, the sum of the elements of sizes. Otherwise, -1.

total_full_size: i64

If get_sizes is true, the sum of the elements of full_sizes (same value as total_size). Otherwise, -1.

info: HashMap<String, String>

Additional information.

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

impl<‘de> Deserialize<‘de> for ShowTableResponse

Source

fn deserialize<__D>(__deserializer: __D) ->Result<Self, __D::Error>
where __D: Deserializer<‘de>,

Deserialize this value from the given Serde deserializer. Read more
Source

fn serialize<__S>(&self, __serializer: __S) ->Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more