pub enum SchemaError {
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,
},
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
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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<SchemaError> for ChronixError
impl From<SchemaError> for ChronixError
Source§fn from(source: SchemaError) -> Self
fn from(source: SchemaError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SchemaError
impl PartialEq for SchemaError
impl StructuralPartialEq for SchemaError
Auto Trait Implementations§
impl Freeze for SchemaError
impl RefUnwindSafe for SchemaError
impl Send for SchemaError
impl Sync for SchemaError
impl Unpin for SchemaError
impl UnsafeUnpin for SchemaError
impl UnwindSafe for SchemaError
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
Mutably borrows from an owned value. Read more