pub struct Type {
pub array_element_type: Option<Option<Box<Type>>>,
pub code: Option<String>,
pub proto_type_fqn: Option<String>,
pub struct_type: Option<StructType>,
pub type_annotation: Option<String>,
}Expand description
Type indicates the type of a Cloud Spanner value, as might be stored in a table cell or returned from an SQL query.
This type is not used in any activity, and only used as part of another schema.
Fields§
§array_element_type: Option<Option<Box<Type>>>If code == ARRAY, then array_element_type is the type of the array elements.
code: Option<String>Required. The TypeCode for this type.
proto_type_fqn: Option<String>If code == PROTO or code == ENUM, then proto_type_fqn is the fully qualified name of the proto type representing the proto/enum definition.
struct_type: Option<StructType>If code == STRUCT, then struct_type provides type information for the struct’s fields.
type_annotation: Option<String>The TypeAnnotationCode that disambiguates SQL type that Spanner will use to represent values of this type during query processing. This is necessary for some type codes because a single TypeCode can be mapped to different SQL types depending on the SQL dialect. type_annotation typically is not needed to process the content of a value (it doesn’t affect serialization) and clients can ignore it on the read path.