Enum google_api_proto::google::privacy::dlp::v2::column_data_profile::ColumnDataType
source · #[repr(i32)]pub enum ColumnDataType {
Show 15 variants
Unspecified = 0,
TypeInt64 = 1,
TypeBool = 2,
TypeFloat64 = 3,
TypeString = 4,
TypeBytes = 5,
TypeTimestamp = 6,
TypeDate = 7,
TypeTime = 8,
TypeDatetime = 9,
TypeGeography = 10,
TypeNumeric = 11,
TypeRecord = 12,
TypeBignumeric = 13,
TypeJson = 14,
}
Expand description
Data types of the data in a column. Types may be added over time.
Variants§
Unspecified = 0
Invalid type.
TypeInt64 = 1
Encoded as a string in decimal format.
TypeBool = 2
Encoded as a boolean “false” or “true”.
TypeFloat64 = 3
Encoded as a number, or string “NaN”, “Infinity” or “-Infinity”.
TypeString = 4
Encoded as a string value.
TypeBytes = 5
Encoded as a base64 string per RFC 4648, section 4.
TypeTimestamp = 6
Encoded as an RFC 3339 timestamp with mandatory “Z” time zone string: 1985-04-12T23:20:50.52Z
TypeDate = 7
Encoded as RFC 3339 full-date format string: 1985-04-12
TypeTime = 8
Encoded as RFC 3339 partial-time format string: 23:20:50.52
TypeDatetime = 9
Encoded as RFC 3339 full-date “T” partial-time: 1985-04-12T23:20:50.52
TypeGeography = 10
Encoded as WKT
TypeNumeric = 11
Encoded as a decimal string.
TypeRecord = 12
Container of ordered fields, each with a type and field name.
TypeBignumeric = 13
Decimal type.
TypeJson = 14
Json type.
Implementations§
source§impl ColumnDataType
impl ColumnDataType
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 Clone for ColumnDataType
impl Clone for ColumnDataType
source§fn clone(&self) -> ColumnDataType
fn clone(&self) -> ColumnDataType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ColumnDataType
impl Debug for ColumnDataType
source§impl Default for ColumnDataType
impl Default for ColumnDataType
source§fn default() -> ColumnDataType
fn default() -> ColumnDataType
source§impl From<ColumnDataType> for i32
impl From<ColumnDataType> for i32
source§fn from(value: ColumnDataType) -> i32
fn from(value: ColumnDataType) -> i32
source§impl Hash for ColumnDataType
impl Hash for ColumnDataType
source§impl Ord for ColumnDataType
impl Ord for ColumnDataType
source§fn cmp(&self, other: &ColumnDataType) -> Ordering
fn cmp(&self, other: &ColumnDataType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for ColumnDataType
impl PartialEq for ColumnDataType
source§fn eq(&self, other: &ColumnDataType) -> bool
fn eq(&self, other: &ColumnDataType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ColumnDataType
impl PartialOrd for ColumnDataType
source§fn partial_cmp(&self, other: &ColumnDataType) -> Option<Ordering>
fn partial_cmp(&self, other: &ColumnDataType) -> Option<Ordering>
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 ColumnDataType
impl TryFrom<i32> for ColumnDataType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<ColumnDataType, DecodeError>
fn try_from(value: i32) -> Result<ColumnDataType, DecodeError>
impl Copy for ColumnDataType
impl Eq for ColumnDataType
impl StructuralPartialEq for ColumnDataType
Auto Trait Implementations§
impl Freeze for ColumnDataType
impl RefUnwindSafe for ColumnDataType
impl Send for ColumnDataType
impl Sync for ColumnDataType
impl Unpin for ColumnDataType
impl UnwindSafe for ColumnDataType
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