#[repr(i32)]pub enum TypeCode {
Unspecified = 0,
Float64 = 3,
Timestamp = 4,
String = 6,
Array = 8,
Struct = 9,
Category = 10,
}
Expand description
TypeCode
is used as a part of
[DataType][google.cloud.automl.v1beta1.DataType].
Variants§
Unspecified = 0
Not specified. Should not be used.
Float64 = 3
Encoded as number
, or the strings "NaN"
, "Infinity"
, or
"-Infinity"
.
Timestamp = 4
Must be between 0AD and 9999AD. Encoded as string
according to
[time_format][google.cloud.automl.v1beta1.DataType.time_format], or, if
that format is not set, then in RFC 3339 date-time
format, where
time-offset
= "Z"
(e.g. 1985-04-12T23:20:50.52Z).
String = 6
Encoded as string
.
Array = 8
Encoded as list
, where the list elements are represented according to
[list_element_type][google.cloud.automl.v1beta1.DataType.list_element_type].
Struct = 9
Encoded as struct
, where field values are represented according to
[struct_type][google.cloud.automl.v1beta1.DataType.struct_type].
Category = 10
Values of this type are not further understood by AutoML,
e.g. AutoML is unable to tell the order of values (as it could with
FLOAT64), or is unable to say if one value contains another (as it
could with STRING).
Encoded as string
(bytes should be base64-encoded, as described in RFC
4648, section 4).
Implementations§
source§impl TypeCode
impl TypeCode
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 TypeCode
impl Ord for TypeCode
source§impl PartialEq for TypeCode
impl PartialEq for TypeCode
source§impl PartialOrd for TypeCode
impl PartialOrd for TypeCode
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 TypeCode
impl TryFrom<i32> for TypeCode
§type Error = DecodeError
type Error = DecodeError
impl Copy for TypeCode
impl Eq for TypeCode
impl StructuralPartialEq for TypeCode
Auto Trait Implementations§
impl Freeze for TypeCode
impl RefUnwindSafe for TypeCode
impl Send for TypeCode
impl Sync for TypeCode
impl Unpin for TypeCode
impl UnwindSafe for TypeCode
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