1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
// SPDX-FileCopyrightText: 2026 ReallyMe LLC // SPDX-License-Identifier: MIT OR Apache-2.0 //! Typed key label validation errors. use thiserror::Error; /// Stable key-label validation failures. #[derive(Debug, Clone, Copy, PartialEq, Eq, Error)] pub enum KeyLabelError { /// Key labels must contain at least one byte. #[error("key label is empty")] Empty, /// Key labels exceeded the bounded length policy. #[error("key label is too long")] TooLong, /// Key labels contained a byte outside the allowlist. #[error("key label contains an invalid byte")] InvalidByte, }