Struct google_api_proto::google::cloud::datacatalog::v1::ColumnSchema
source · pub struct ColumnSchema {
pub column: String,
pub type: String,
pub description: String,
pub mode: String,
pub default_value: String,
pub ordinal_position: i32,
pub highest_indexing_type: i32,
pub subcolumns: Vec<ColumnSchema>,
pub range_element_type: Option<FieldElementType>,
pub gc_rule: String,
pub system_spec: Option<SystemSpec>,
}
Expand description
A column within a schema. Columns can be nested inside other columns.
Fields§
§column: String
Required. Name of the column.
Must be a UTF-8 string without dots (.). The maximum size is 64 bytes.
type: String
Required. Type of the column.
Must be a UTF-8 string with the maximum size of 128 bytes.
description: String
Optional. Description of the column. Default value is an empty string.
The description must be a UTF-8 string with the maximum size of 2000 bytes.
mode: String
Optional. A column’s mode indicates whether values in this column are required, nullable, or repeated.
Only NULLABLE
, REQUIRED
, and REPEATED
values are supported.
Default mode is NULLABLE
.
default_value: String
Optional. Default value for the column.
ordinal_position: i32
Optional. Ordinal position
highest_indexing_type: i32
Optional. Most important inclusion of this column.
subcolumns: Vec<ColumnSchema>
Optional. Schema of sub-columns. A column can have zero or more sub-columns.
range_element_type: Option<FieldElementType>
Optional. The subtype of the RANGE, if the type of this field is RANGE. If the type is RANGE, this field is required. Possible values for the field element type of a RANGE include:
- DATE
- DATETIME
- TIMESTAMP
gc_rule: String
Optional. Garbage collection policy for the column or column family. Applies to systems like Cloud Bigtable.
system_spec: Option<SystemSpec>
Information only applying for columns in Entries from a specific system.
Implementations§
source§impl ColumnSchema
impl ColumnSchema
sourcepub fn highest_indexing_type(&self) -> IndexingType
pub fn highest_indexing_type(&self) -> IndexingType
Returns the enum value of highest_indexing_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_highest_indexing_type(&mut self, value: IndexingType)
pub fn set_highest_indexing_type(&mut self, value: IndexingType)
Sets highest_indexing_type
to the provided enum value.
Trait Implementations§
source§impl Clone for ColumnSchema
impl Clone for ColumnSchema
source§fn clone(&self) -> ColumnSchema
fn clone(&self) -> ColumnSchema
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ColumnSchema
impl Debug for ColumnSchema
source§impl Default for ColumnSchema
impl Default for ColumnSchema
source§impl Message for ColumnSchema
impl Message for ColumnSchema
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ColumnSchema
impl PartialEq for ColumnSchema
source§fn eq(&self, other: &ColumnSchema) -> bool
fn eq(&self, other: &ColumnSchema) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ColumnSchema
Auto Trait Implementations§
impl Freeze for ColumnSchema
impl RefUnwindSafe for ColumnSchema
impl Send for ColumnSchema
impl Sync for ColumnSchema
impl Unpin for ColumnSchema
impl UnwindSafe for ColumnSchema
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request