pub enum PrimitiveConvertedType {
}
Variants
Utf8
Enum
an enum is converted into a binary field
Decimal(i32, i32)
A decimal value.
This may be used to annotate binary or fixed primitive types. The underlying byte array stores the unscaled value encoded as two’s complement using big-endian byte order (the most significant byte is the zeroth element). The value of the decimal is the value * 10^{-scale}.
This must be accompanied by a (maximum) precision and a scale in the SchemaElement. The precision specifies the number of digits in the decimal and the scale stores the location of the decimal point. For example 1.23 would have precision 3 (3 total digits) and scale 2 (the decimal point is 2 digits over).
Date
A Date
Stored as days since Unix epoch, encoded as the INT32 physical type.
TimeMillis
A time
The total number of milliseconds since midnight. The value is stored as an INT32 physical type.
TimeMicros
A time.
The total number of microseconds since midnight. The value is stored as an INT64 physical type.
TimestampMillis
A date/time combination
Date and time recorded as milliseconds since the Unix epoch. Recorded as a physical type of INT64.
TimestampMicros
A date/time combination
Date and time recorded as microseconds since the Unix epoch. The value is stored as an INT64 physical type.
Uint8
An unsigned integer value.
The number describes the maximum number of meainful data bits in the stored value. 8, 16 and 32 bit values are stored using the INT32 physical type. 64 bit values are stored using the INT64 physical type.
Uint16
Uint32
Uint64
Int8
A signed integer value.
The number describes the maximum number of meainful data bits in the stored value. 8, 16 and 32 bit values are stored using the INT32 physical type. 64 bit values are stored using the INT64 physical type.
Int16
Int32
Int64
Json
An embedded JSON document
A JSON document embedded within a single UTF8 column.
Bson
An embedded BSON document
A BSON document embedded within a single BINARY column.
Interval
An interval of time
This type annotates data stored as a FIXED_LEN_BYTE_ARRAY of length 12 This data is composed of three separate little endian unsigned integers. Each stores a component of a duration of time. The first integer identifies the number of months associated with the duration, the second identifies the number of days associated with the duration and the third identifies the number of milliseconds associated with the provided duration. This duration of time is independent of any particular timezone or date.
Trait Implementations
sourceimpl Clone for PrimitiveConvertedType
impl Clone for PrimitiveConvertedType
sourcefn clone(&self) -> PrimitiveConvertedType
fn clone(&self) -> PrimitiveConvertedType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PrimitiveConvertedType
impl Debug for PrimitiveConvertedType
sourceimpl PartialEq<PrimitiveConvertedType> for PrimitiveConvertedType
impl PartialEq<PrimitiveConvertedType> for PrimitiveConvertedType
sourcefn eq(&self, other: &PrimitiveConvertedType) -> bool
fn eq(&self, other: &PrimitiveConvertedType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PrimitiveConvertedType) -> bool
fn ne(&self, other: &PrimitiveConvertedType) -> bool
This method tests for !=
.
impl StructuralPartialEq for PrimitiveConvertedType
Auto Trait Implementations
impl RefUnwindSafe for PrimitiveConvertedType
impl Send for PrimitiveConvertedType
impl Sync for PrimitiveConvertedType
impl Unpin for PrimitiveConvertedType
impl UnwindSafe for PrimitiveConvertedType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more