Struct gapi_grpc::google::spanner::v1::Type[][src]

pub struct Type {
    pub code: i32,
    pub array_element_type: Option<Box<Type>>,
    pub struct_type: Option<StructType>,
}

Type indicates the type of a Cloud Spanner value, as might be stored in a table cell or returned from an SQL query.

Fields

code: i32

Required. The [TypeCode][google.spanner.v1.TypeCode] for this type.

array_element_type: Option<Box<Type>>

If [code][google.spanner.v1.Type.code] == [ARRAY][google.spanner.v1.TypeCode.ARRAY], then array_element_type is the type of the array elements.

struct_type: Option<StructType>

If [code][google.spanner.v1.Type.code] == [STRUCT][google.spanner.v1.TypeCode.STRUCT], then struct_type provides type information for the struct’s fields.

Implementations

impl Type[src]

pub fn code(&self) -> TypeCode[src]

Returns the enum value of code, or the default if the field is set to an invalid enum value.

pub fn set_code(&mut self, value: TypeCode)[src]

Sets code to the provided enum value.

Trait Implementations

impl Clone for Type[src]

impl Debug for Type[src]

impl Default for Type[src]

impl Message for Type[src]

impl PartialEq<Type> for Type[src]

impl StructuralPartialEq for Type[src]

Auto Trait Implementations

impl RefUnwindSafe for Type

impl Send for Type

impl Sync for Type

impl Unpin for Type

impl UnwindSafe for Type

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> 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]