Enum gapi_grpc::google::cloud::automl::v1beta1::TypeCode[][src]

#[repr(i32)]pub enum TypeCode {
    Unspecified,
    Float64,
    Timestamp,
    String,
    Array,
    Struct,
    Category,
}

TypeCode is used as a part of [DataType][google.cloud.automl.v1beta1.DataType].

Variants

Unspecified

Not specified. Should not be used.

Float64

Encoded as number, or the strings "NaN", "Infinity", or "-Infinity".

Timestamp

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

Encoded as string.

Array

Encoded as list, where the list elements are represented according to

[list_element_type][google.cloud.automl.v1beta1.DataType.list_element_type].

Struct

Encoded as struct, where field values are represented according to [struct_type][google.cloud.automl.v1beta1.DataType.struct_type].

Category

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

impl TypeCode[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of TypeCode.

pub fn from_i32(value: i32) -> Option<TypeCode>[src]

Converts an i32 to a TypeCode, or None if value is not a valid variant.

Trait Implementations

impl Clone for TypeCode[src]

impl Copy for TypeCode[src]

impl Debug for TypeCode[src]

impl Default for TypeCode[src]

impl Eq for TypeCode[src]

impl From<TypeCode> for i32[src]

impl Hash for TypeCode[src]

impl Ord for TypeCode[src]

impl PartialEq<TypeCode> for TypeCode[src]

impl PartialOrd<TypeCode> for TypeCode[src]

impl StructuralEq for TypeCode[src]

impl StructuralPartialEq for TypeCode[src]

Auto Trait Implementations

impl RefUnwindSafe for TypeCode

impl Send for TypeCode

impl Sync for TypeCode

impl Unpin for TypeCode

impl UnwindSafe for TypeCode

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]