[][src]Enum gcp_client::google::cloud::automl::v1beta1::data_type::Details

pub enum Details {
    ListElementType(Box<DataType>),
    StructType(StructType),
    TimeFormat(String),
}

Details of DataType-s that need additional specification.

Variants

ListElementType(Box<DataType>)

If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY], then list_element_type is the type of the elements.

StructType(StructType)

If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then struct_type provides type information for the struct's fields.

TimeFormat(String)

If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [TIMESTAMP][google.cloud.automl.v1beta1.TypeCode.TIMESTAMP] then time_format provides the format in which that time field is expressed. The time_format must either be one of:

  • UNIX_SECONDS
  • UNIX_MILLISECONDS
  • UNIX_MICROSECONDS
  • UNIX_NANOSECONDS (for respectively number of seconds, milliseconds, microseconds and nanoseconds since start of the Unix epoch); or be written in strftime syntax. If time_format is not set, then the default format as described on the type_code is used.

Implementations

impl Details[src]

pub fn encode<B>(&self, buf: &mut B) where
    B: BufMut
[src]

pub fn merge<B>(
    field: &mut Option<Details>,
    tag: u32,
    wire_type: WireType,
    buf: &mut B,
    ctx: DecodeContext
) -> Result<(), DecodeError> where
    B: Buf
[src]

pub fn encoded_len(&self) -> usize[src]

Trait Implementations

impl Clone for Details[src]

impl Debug for Details[src]

impl PartialEq<Details> for Details[src]

impl StructuralPartialEq for Details[src]

Auto Trait Implementations

impl RefUnwindSafe for Details

impl Send for Details

impl Sync for Details

impl Unpin for Details

impl UnwindSafe for Details

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<T> From<T> 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>, 

impl<T> WithSubscriber for T[src]