#[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 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 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
impl Eq 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)>
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 LabelValidationError
impl PartialEq for LabelValidationError
Source§impl Serialize for LabelValidationError
impl Serialize for LabelValidationError
impl StructuralPartialEq for LabelValidationError
Auto Trait Implementations§
impl Freeze for LabelValidationError
impl RefUnwindSafe for LabelValidationError
impl Send for LabelValidationError
impl Sync for LabelValidationError
impl Unpin for LabelValidationError
impl UnsafeUnpin for LabelValidationError
impl UnwindSafe for LabelValidationError
Blanket Implementations§
impl<T> BindgenSerializable for T
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