pub enum ValidationErrorKind {
Show 18 variants
Required,
MaxTextLength(usize),
MinTextLength(usize),
MaxArraySize(usize),
MinArraySize(usize),
EmptyArray,
InvalidFormat(&'static str),
MaxIntegerValue(i64),
MinIntegerValue(i64),
MustBeGreaterThanZero,
ExclusiveField(&'static str, &'static str),
EitherRequired(&'static str, &'static str),
AtLeastOneOf4(&'static str, &'static str, &'static str, &'static str),
NoFieldProvided,
RichTextSingleElement,
RichTextTableHeader,
UniqueSeriesName,
DataPointLabelMatching,
}Expand description
Validation error variants.
Variants§
Required
Field is required but not provided.
MaxTextLength(usize)
Field exceeds maximum text length.
MinTextLength(usize)
Field does not meet minimum text length.
MaxArraySize(usize)
Field exceeds maximum array length.
MinArraySize(usize)
Field does not meet minimum array length.
EmptyArray
Field does not meet non-empty condition.
InvalidFormat(&'static str)
Field does not meet format condition.
MaxIntegerValue(i64)
Field exceeds maximum integer value.
MinIntegerValue(i64)
Field does not meet minimum integer value.
MustBeGreaterThanZero
Field must be greater than zero.
ExclusiveField(&'static str, &'static str)
Both fields are provided but only one is allowed.
EitherRequired(&'static str, &'static str)
Either field is required but none is provided.
AtLeastOneOf4(&'static str, &'static str, &'static str, &'static str)
NoFieldProvided
At least one field is required but none is provided.
RichTextSingleElement
Rich text block should have exactly one element.
RichTextTableHeader
Rich text cannot be used for a table header row.
UniqueSeriesName
Each series within a chart must have a unique name.
DataPointLabelMatching
Every data point label in every series must match a value in axis config categories.
Trait Implementations§
Source§impl Clone for ValidationErrorKind
impl Clone for ValidationErrorKind
Source§fn clone(&self) -> ValidationErrorKind
fn clone(&self) -> ValidationErrorKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ValidationErrorKind
Source§impl Debug for ValidationErrorKind
impl Debug for ValidationErrorKind
Source§impl Display for ValidationErrorKind
impl Display for ValidationErrorKind
Source§impl Error for ValidationErrorKind
impl Error for ValidationErrorKind
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()
Source§impl PartialEq for ValidationErrorKind
impl PartialEq for ValidationErrorKind
Source§fn eq(&self, other: &ValidationErrorKind) -> bool
fn eq(&self, other: &ValidationErrorKind) -> bool
self and other values to be equal, and is used by ==.