#[non_exhaustive]
pub enum LabelValidationError {
EmptyKey,
EmptyName,
NameTooLong,
NameInvalidCharacters,
EmptyPrefix,
PrefixTooLong,
PrefixInvalidCharacters,
ValueTooLong,
ValueInvalidCharacters,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EmptyKey
EmptyName
NameTooLong
NameInvalidCharacters
EmptyPrefix
PrefixTooLong
PrefixInvalidCharacters
ValueTooLong
ValueInvalidCharacters
Trait Implementations§
source§impl Clone for LabelValidationError
impl Clone for LabelValidationError
source§fn clone(&self) -> LabelValidationError
fn clone(&self) -> LabelValidationError
Returns a copy 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 LabelValidationError
impl Debug for LabelValidationError
source§impl<'de> Deserialize<'de> for LabelValidationError
impl<'de> Deserialize<'de> for LabelValidationError
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for LabelValidationError
impl Display for LabelValidationError
source§impl Error for LabelValidationError
impl Error for LabelValidationError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<LabelValidationError> for LabelValidationError
impl PartialEq<LabelValidationError> for LabelValidationError
source§fn eq(&self, other: &LabelValidationError) -> bool
fn eq(&self, other: &LabelValidationError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.