pub enum SchemaError {
Show 13 variants
EmptyName {
label: String,
},
NameTooLong {
label: String,
length: usize,
max: usize,
},
NullByte {
label: String,
},
InvalidCharacter {
label: String,
ch: char,
value: String,
},
TooManyTags {
count: usize,
max: usize,
},
EmptyFields,
TooManyFields {
count: usize,
max: usize,
},
InvalidFieldValue {
field: String,
reason: String,
},
TypeConflict {
measurement: String,
field: String,
expected: String,
got: String,
},
DecimalScaleConflict {
measurement: String,
field: String,
declared: u8,
got: u8,
value: String,
},
MeasurementNotFound(String),
LockPoisoned(String),
InvalidName {
name: String,
reason: String,
},
}Expand description
Schema validation and evolution errors.
Variants§
EmptyName
Name is empty.
NameTooLong
Name exceeds maximum length.
Fields
NullByte
Name contains null byte.
InvalidCharacter
Name/value contains a character that would break
the canonical form encoding (e.g. = in tag values).
Fields
TooManyTags
Too many tags on a series key.
EmptyFields
Point has no fields.
TooManyFields
Too many fields on a single point.
InvalidFieldValue
A field value failed validation (e.g., non-finite f64, oversized string).
TypeConflict
Type conflict: a field already exists with a different type.
Fields
DecimalScaleConflict
A decimal value carries more fractional digits than its column declares, so storing it would have to round.
Separate from TypeConflict because the fix is
different: the types agree, the scale does not, and the writer
either rounds the value itself or declares the column with the scale
it needs before the first write.
Fields
MeasurementNotFound(String)
Measurement not found.
LockPoisoned(String)
Internal lock was poisoned (indicates a prior panic while holding the lock).
InvalidName
An entity name failed validation.
Trait Implementations§
Source§impl Clone for SchemaError
impl Clone for SchemaError
Source§fn clone(&self) -> SchemaError
fn clone(&self) -> SchemaError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SchemaError
impl Debug for SchemaError
Source§impl Display for SchemaError
impl Display for SchemaError
impl Eq for SchemaError
Source§impl Error for SchemaError
impl Error for SchemaError
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()