Skip to main content
pub struct AlterTableColumnsResponse 
    pub table_name: String,
    pub type_id: String,
    pub type_definition: String,
    pub properties: HashMap<String, Vec<String>>,
    pub label: String,
    pub column_alterations: Vec<HashMap<String, String>>,
    pub info: HashMap<String, String>,

The response from the /alter/table/columns endpoint.

Fields

table_name: String

Table on which the operation was performed.

type_id: String

Return the type_id (when changing a table, a new type may be created).

type_definition: String

Return the type_definition (when changing a table, a new type may be created).

properties: HashMap<String, Vec<String>>

Return the type properties (when changing a table, a new type may be created).

label: String

Return the type label (when changing a table, a new type may be created).

column_alterations: Vec<HashMap<String, String>>

List of alter table add/delete/change column requests - all for the same table. Each request is a map that includes ‘column_name’, ‘action’ and the options specific for the action. Note that the same options as in alter table requests but in the same map as the column name and the action. For example: [‘column_name’:‘col_1’,‘action’:‘change_column’,‘rename_column’:‘col_2’,‘column_name’:‘col_1’,‘action’:‘add_column’, ‘type’:‘int’,‘default_value’:‘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

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