Enum google_api_proto::google::cloud::connectors::v1::DataType
source · #[repr(i32)]pub enum DataType {
Show 45 variants
Unspecified = 0,
Int = 1,
Smallint = 2,
Double = 3,
Date = 4,
Datetime = 5,
Time = 6,
String = 7,
Long = 8,
Boolean = 9,
Decimal = 10,
Uuid = 11,
Blob = 12,
Bit = 13,
Tinyint = 14,
Integer = 15,
Bigint = 16,
Float = 17,
Real = 18,
Numeric = 19,
Char = 20,
Varchar = 21,
Longvarchar = 22,
Timestamp = 23,
Nchar = 24,
Nvarchar = 25,
Longnvarchar = 26,
Null = 27,
Other = 28,
JavaObject = 29,
Distinct = 30,
Struct = 31,
Array = 32,
Clob = 33,
Ref = 34,
Datalink = 35,
Rowid = 36,
Binary = 37,
Varbinary = 38,
Longvarbinary = 39,
Nclob = 40,
Sqlxml = 41,
RefCursor = 42,
TimeWithTimezone = 43,
TimestampWithTimezone = 44,
}
Expand description
All possible data types of a entity or action field.
Variants§
Unspecified = 0
Data type is not specified.
Int = 1
DEPRECATED! Use DATA_TYPE_INTEGER.
Smallint = 2
Short integer(int16) data type.
Double = 3
Double data type.
Date = 4
Date data type.
Datetime = 5
DEPRECATED! Use DATA_TYPE_TIMESTAMP.
Time = 6
Time data type.
String = 7
DEPRECATED! Use DATA_TYPE_VARCHAR.
Long = 8
DEPRECATED! Use DATA_TYPE_BIGINT.
Boolean = 9
Boolean data type.
Decimal = 10
Decimal data type.
Uuid = 11
DEPRECATED! Use DATA_TYPE_VARCHAR.
Blob = 12
UNSUPPORTED! Binary data type.
Bit = 13
Bit data type.
Tinyint = 14
Small integer(int8) data type.
Integer = 15
Integer(int32) data type.
Bigint = 16
Long integer(int64) data type.
Float = 17
Float data type.
Real = 18
Real data type.
Numeric = 19
Numeric data type.
Char = 20
Char data type.
Varchar = 21
Varchar data type.
Longvarchar = 22
Longvarchar data type.
Timestamp = 23
Timestamp data type.
Nchar = 24
Nchar data type.
Nvarchar = 25
Nvarchar data type.
Longnvarchar = 26
Longnvarchar data type.
Null = 27
Null data type.
Other = 28
UNSUPPORTED! Binary data type.
JavaObject = 29
UNSUPPORTED! Binary data type.
Distinct = 30
UNSUPPORTED! Binary data type.
Struct = 31
UNSUPPORTED! Binary data type.
Array = 32
UNSUPPORTED! Binary data type.
Clob = 33
UNSUPPORTED! Binary data type.
Ref = 34
UNSUPPORTED! Binary data type.
Datalink = 35
UNSUPPORTED! Binary data type.
Rowid = 36
UNSUPPORTED! Row id data type.
Binary = 37
UNSUPPORTED! Binary data type.
Varbinary = 38
UNSUPPORTED! Variable binary data type.
Longvarbinary = 39
UNSUPPORTED! Long variable binary data type.
Nclob = 40
UNSUPPORTED! NCLOB data type.
Sqlxml = 41
UNSUPPORTED! SQL XML data type is not supported.
RefCursor = 42
UNSUPPORTED! Cursor reference type is not supported.
TimeWithTimezone = 43
UNSUPPORTED! Use TIME or TIMESTAMP instead.
TimestampWithTimezone = 44
UNSUPPORTED! Use TIMESTAMP instead.
Implementations§
source§impl DataType
impl DataType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Ord for DataType
impl Ord for DataType
source§impl PartialEq for DataType
impl PartialEq for DataType
source§impl PartialOrd for DataType
impl PartialOrd for DataType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for DataType
impl TryFrom<i32> for DataType
§type Error = DecodeError
type Error = DecodeError
impl Copy for DataType
impl Eq for DataType
impl StructuralPartialEq for DataType
Auto Trait Implementations§
impl Freeze for DataType
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnwindSafe for DataType
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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