pub enum PrimitiveConvertedType {
}
Variants§
Utf8
Enum
an enum is converted into a binary field
Decimal(usize, usize)
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 meaningful 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§
Source§impl Clone for PrimitiveConvertedType
impl Clone for PrimitiveConvertedType
Source§fn clone(&self) -> PrimitiveConvertedType
fn clone(&self) -> PrimitiveConvertedType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PrimitiveConvertedType
impl Debug for PrimitiveConvertedType
Source§impl From<PrimitiveConvertedType> for (ConvertedType, Option<(i32, i32)>)
impl From<PrimitiveConvertedType> for (ConvertedType, Option<(i32, i32)>)
Source§fn from(ty: PrimitiveConvertedType) -> Self
fn from(ty: PrimitiveConvertedType) -> Self
Source§impl Hash for PrimitiveConvertedType
impl Hash for PrimitiveConvertedType
Source§impl PartialEq for PrimitiveConvertedType
impl PartialEq for PrimitiveConvertedType
Source§impl TryFrom<(ConvertedType, Option<(i32, i32)>)> for PrimitiveConvertedType
impl TryFrom<(ConvertedType, Option<(i32, i32)>)> for PrimitiveConvertedType
impl Copy for PrimitiveConvertedType
impl Eq for PrimitiveConvertedType
impl StructuralPartialEq for PrimitiveConvertedType
Auto Trait Implementations§
impl Freeze for PrimitiveConvertedType
impl RefUnwindSafe for PrimitiveConvertedType
impl Send for PrimitiveConvertedType
impl Sync for PrimitiveConvertedType
impl Unpin for PrimitiveConvertedType
impl UnwindSafe for PrimitiveConvertedType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more