pub enum SloSchemaError {
InvalidThreshold {
field: String,
value: f64,
},
MissingField(String),
ParseError {
field: String,
reason: String,
},
UnknownMetricType(String),
DuplicateMetric(String),
MalformedStructure(String),
}Expand description
Schema validation error.
Variants§
InvalidThreshold
A threshold value is out of range.
MissingField(String)
A required field is missing.
ParseError
A value failed to parse.
UnknownMetricType(String)
Unknown metric type.
DuplicateMetric(String)
Duplicate metric definition.
MalformedStructure(String)
General malformed structure.
Trait Implementations§
Source§impl Clone for SloSchemaError
impl Clone for SloSchemaError
Source§fn clone(&self) -> SloSchemaError
fn clone(&self) -> SloSchemaError
Returns a duplicate of the value. Read more
1.0.0 · 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 SloSchemaError
impl Debug for SloSchemaError
Source§impl Display for SloSchemaError
impl Display for SloSchemaError
Source§impl Error for SloSchemaError
impl Error for SloSchemaError
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 PartialEq for SloSchemaError
impl PartialEq for SloSchemaError
impl StructuralPartialEq for SloSchemaError
Auto Trait Implementations§
impl Freeze for SloSchemaError
impl RefUnwindSafe for SloSchemaError
impl Send for SloSchemaError
impl Sync for SloSchemaError
impl Unpin for SloSchemaError
impl UnsafeUnpin for SloSchemaError
impl UnwindSafe for SloSchemaError
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