#[non_exhaustive]pub enum BigQueryFieldType {
Show 16 variants
Int64,
Float64,
Numeric(Option<BigQueryDecimalParams>),
BigNumeric(Option<BigQueryDecimalParams>),
Bool,
String {
max_length: Option<u64>,
},
Bytes {
max_length: Option<u64>,
},
Date,
Time,
DateTime,
Timestamp,
Geography,
Json,
Interval,
Range(BigQueryRangeElementType),
Struct(Vec<BigQueryFieldSchema>),
}Expand description
The type of a column, with the parameters that are part of it.
Display prints GoogleSQL type syntax, as in STRING(10), NUMERIC(10, 2),
RANGE<DATE> and STRUCT<a INT64, b ARRAY<STRING>>. An ARRAY column is the
Repeated mode of its element type, not a type of its own.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Int64
INT64, INTEGER in the v2 API.
Float64
FLOAT64, FLOAT in the v2 API.
Numeric(Option<BigQueryDecimalParams>)
NUMERIC, DECIMAL in the v2 API, with its declared precision and scale if any.
BigNumeric(Option<BigQueryDecimalParams>)
BIGNUMERIC, BIGDECIMAL in the v2 API, with its declared precision and scale if any.
Bool
BOOL, BOOLEAN in the v2 API.
String
STRING, with its declared maximum length in characters if any.
Bytes
BYTES, with its declared maximum length in bytes if any.
Date
DATE.
Time
TIME.
DateTime
DATETIME.
Timestamp
TIMESTAMP with microsecond precision.
Geography
GEOGRAPHY.
Json
JSON.
Interval
INTERVAL.
Range(BigQueryRangeElementType)
RANGE of the element type.
Struct(Vec<BigQueryFieldSchema>)
STRUCT, RECORD in the v2 API, with its fields in order.
Trait Implementations§
Source§impl Clone for BigQueryFieldType
impl Clone for BigQueryFieldType
Source§impl Debug for BigQueryFieldType
impl Debug for BigQueryFieldType
Source§impl Display for BigQueryFieldType
impl Display for BigQueryFieldType
impl Eq for BigQueryFieldType
Source§impl From<BigQueryFieldType> for BigQueryParamType
impl From<BigQueryFieldType> for BigQueryParamType
Source§fn from(field_type: BigQueryFieldType) -> Self
fn from(field_type: BigQueryFieldType) -> Self
Source§impl Hash for BigQueryFieldType
impl Hash for BigQueryFieldType
Source§impl PartialEq for BigQueryFieldType
impl PartialEq for BigQueryFieldType
impl StructuralPartialEq for BigQueryFieldType
Auto Trait Implementations§
impl Forget for BigQueryFieldType
impl Freeze for BigQueryFieldType
impl Move for BigQueryFieldType
impl RefUnwindSafe for BigQueryFieldType
impl Send for BigQueryFieldType
impl Sync for BigQueryFieldType
impl Unpin for BigQueryFieldType
impl UnsafeUnpin for BigQueryFieldType
impl UnwindSafe for BigQueryFieldType
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request