#[non_exhaustive]pub enum RowBinaryError {
Unsupported(&'static str),
SequenceMustHaveLength,
FlattenUnsupported,
NestedOption,
FieldCountMismatch {
expected: usize,
got: usize,
},
VariantOutOfRange(u32),
Custom(String),
}Expand description
A row failed to serialize. Record-level: subject to the sink stage’s error policy, never fatal to the pipeline by itself.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unsupported(&'static str)
The Rust type has no RowBinary representation.
SequenceMustHaveLength
Sequences must know their length up front (LEB128 prefix).
FlattenUnsupported
#[serde(flatten)] (serde serializes the outer struct as a
length-less map, which RowBinary cannot position into columns).
NestedOption
A nested Option (Option<Option<T>>): ClickHouse has no
Nullable(Nullable(T)), so the double null-prefix is unparseable.
FieldCountMismatch
A Serialize impl declared one struct field count to
serialize_struct but serialized a different number of fields.
RowBinary is positional, so a variable-width row misaligns every
following column. (Note: #[serde(skip)]/#[serde(skip_serializing_if)]
evade this check — serde reports the post-skip count — which is why
those attributes are documented as unsupported.)
VariantOutOfRange(u32)
Variant discriminants are single bytes.
Custom(String)
An error raised by a Serialize implementation.
Trait Implementations§
Source§impl Debug for RowBinaryError
impl Debug for RowBinaryError
Source§impl Display for RowBinaryError
impl Display for RowBinaryError
Source§impl Error for RowBinaryError
impl Error for RowBinaryError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()