#[non_exhaustive]pub enum BigQueryCodecErrorKind {
TypeMismatch,
NullForNonOption,
NullForRequired,
NullArrayElement,
OutOfRange,
InvalidText,
UnknownField,
MissingRequiredField,
UnsupportedType,
RowTooLarge,
Custom,
}Expand description
The kinds of BigQuerySerializationError.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TypeMismatch
The Rust form is not one the column’s type accepts, in either direction.
NullForNonOption
Read: a NULL into a target that is not an Option.
NullForRequired
Write: None for a REQUIRED field.
NullArrayElement
Write: None inside a REPEATED field.
OutOfRange
The value is outside the BigQuery type or outside the Rust target.
InvalidText
A text form that does not parse, such as a malformed DATE.
UnknownField
Write: a field or map key with no column in the table schema.
MissingRequiredField
Write: a REQUIRED field the row never wrote.
UnsupportedType
A column type the crate does not handle, such as TIMESTAMP with picosecond precision.
RowTooLarge
Write: one encoded row is larger than the request budget.
Custom
An error raised by the target type’s own serde impl.
Implementations§
Trait Implementations§
Source§impl Clone for BigQueryCodecErrorKind
impl Clone for BigQueryCodecErrorKind
impl Copy for BigQueryCodecErrorKind
Source§impl Debug for BigQueryCodecErrorKind
impl Debug for BigQueryCodecErrorKind
Source§impl Display for BigQueryCodecErrorKind
impl Display for BigQueryCodecErrorKind
impl Eq for BigQueryCodecErrorKind
Source§impl PartialEq for BigQueryCodecErrorKind
impl PartialEq for BigQueryCodecErrorKind
impl StructuralPartialEq for BigQueryCodecErrorKind
Auto Trait Implementations§
impl Forget for BigQueryCodecErrorKind
impl Freeze for BigQueryCodecErrorKind
impl Move for BigQueryCodecErrorKind
impl RefUnwindSafe for BigQueryCodecErrorKind
impl Send for BigQueryCodecErrorKind
impl Sync for BigQueryCodecErrorKind
impl Unpin for BigQueryCodecErrorKind
impl UnsafeUnpin for BigQueryCodecErrorKind
impl UnwindSafe for BigQueryCodecErrorKind
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
Mutably borrows from an owned value. Read more
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
Compare self to
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>
Wrap the input message
T in a tonic::Request