Enum spanner_rs::Type [−][src]
pub enum Type {
Bool,
Int64,
Float64,
String,
Bytes,
Json,
Numeric,
Timestamp,
Date,
Array(Box<Type>),
Struct(StructType),
}Expand description
An enumeration of all Cloud Spanner data types.
Refer to the Cloud Spanner documentation for detailed information about individual data types.
Variants
The BOOL data type.
- Storage size: 1 byte
The INT64 data type.
- Storage size: 8 bytes
- Range:
-9,223,372,036,854,775,808to9,223,372,036,854,775,807
The BYTES data type.
- Storage: the number of bytes
The JSON data type.
Note that the JSON document will be canonicalized before storing. Refer to the Cloud Spanner for details.
- Storage: The number of bytes in UTF-8 encoding of the JSON-formatted string equivalent after canonicalization.
The NUMERIC data type.
- Storage: varies between 6 and 22 bytes, except for the value 0 which uses 1 byte.
The TIMESTAMP data type.
Refer to the Cloud Spanner documentation for details on timezones and format when used in SQL statements.
- Storage: 12 bytes
- Range:
0001-01-01 00:00:00to9999-12-31 23:59:59.999999999UTC.
The DATE data type.
- Storage: 4 bytes
- Range:
0001-01-01to9999-12-31. - Canonical format:
YYYY-[M]M-[D]D
The ARRAY data type.
Can contain elements of any other type except Array (i.e.: arrays of arrays are not allowed).
Can contain NULL elements.
A NULL value of type array and an empty array are different values.
- Storage: the sum of the size of its elements
Struct(StructType)The STRUCT data type.
Tuple Fields of Struct
0: StructTypeImplementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Type
impl UnwindSafe for Type
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more