Skip to main content

RequestColumn

Trait RequestColumn 

Source
trait RequestColumn {
    // Required methods
    fn has_type_of(&self, column: &ColumnMetadata) -> bool;
    fn type_name(&self) -> String;
    fn semantic_type(&self) -> Option<i32>;
    fn has_null(&self) -> bool;
}
Expand description

A column of a write request, as check_request_columns sees it.

Required Methods§

Source

fn has_type_of(&self, column: &ColumnMetadata) -> bool

Returns whether the column has the data type of column.

Source

fn type_name(&self) -> String

Describes the data type of the column in errors.

Source

fn semantic_type(&self) -> Option<i32>

Returns the semantic type of the column if the request carries one.

Source

fn has_null(&self) -> bool

Returns whether the column contains nulls.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§