lance_namespace_reqwest_client/models/
describe_table_response.rs

1/*
2 * Lance Namespace Specification
3 *
4 * This OpenAPI specification is a part of the Lance namespace specification. It contains 2 parts:  The `components/schemas`, `components/responses`, `components/examples`, `tags` sections define the request and response shape for each operation in a Lance Namespace across all implementations. See https://lance.org/format/namespace/operations for more details.  The `servers`, `security`, `paths`, `components/parameters` sections are for the  Lance REST Namespace implementation, which defines a complete REST server that can work with Lance datasets. See https://lance.org/format/namespace/rest for more details. 
5 *
6 * The version of the OpenAPI document: 1.0.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct DescribeTableResponse {
16    /// Table name. Only populated when `load_detailed_metadata` is true. 
17    #[serde(rename = "table", skip_serializing_if = "Option::is_none")]
18    pub table: Option<String>,
19    /// The namespace identifier as a list of parts. Only populated when `load_detailed_metadata` is true. 
20    #[serde(rename = "namespace", skip_serializing_if = "Option::is_none")]
21    pub namespace: Option<Vec<String>>,
22    /// Table version number. Only populated when `load_detailed_metadata` is true. 
23    #[serde(rename = "version", skip_serializing_if = "Option::is_none")]
24    pub version: Option<i64>,
25    /// Table storage location (e.g., S3/GCS path). 
26    #[serde(rename = "location", skip_serializing_if = "Option::is_none")]
27    pub location: Option<String>,
28    /// Table URI. Unlike location, this field must be a complete and valid URI. Only returned when `with_table_uri` is true. 
29    #[serde(rename = "table_uri", skip_serializing_if = "Option::is_none")]
30    pub table_uri: Option<String>,
31    /// Table schema in JSON Arrow format. Only populated when `load_detailed_metadata` is true. 
32    #[serde(rename = "schema", skip_serializing_if = "Option::is_none")]
33    pub schema: Option<Box<models::JsonArrowSchema>>,
34    /// Configuration options to be used to access storage. The available options depend on the type of storage in use. These will be passed directly to Lance to initialize storage access. When `vend_credentials` is true, this field may include vended credentials. If the vended credentials are temporary, the `expires_at_millis` key should be included to indicate the millisecond timestamp when the credentials expire. 
35    #[serde(rename = "storage_options", skip_serializing_if = "Option::is_none")]
36    pub storage_options: Option<std::collections::HashMap<String, String>>,
37    /// Table statistics. Only populated when `load_detailed_metadata` is true. 
38    #[serde(rename = "stats", skip_serializing_if = "Option::is_none")]
39    pub stats: Option<Box<models::TableBasicStats>>,
40    /// Optional table metadata as key-value pairs. 
41    #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")]
42    pub metadata: Option<std::collections::HashMap<String, String>>,
43}
44
45impl DescribeTableResponse {
46    pub fn new() -> DescribeTableResponse {
47        DescribeTableResponse {
48            table: None,
49            namespace: None,
50            version: None,
51            location: None,
52            table_uri: None,
53            schema: None,
54            storage_options: None,
55            stats: None,
56            metadata: None,
57        }
58    }
59}
60