#[non_exhaustive]pub enum DeterministicCborMapKey {
Integer(DeterministicCborInteger),
Text(String),
}Expand description
Map key domain supported by deterministic generic CBOR.
Text keys are treated as potentially sensitive because the codec is a generic infrastructure layer and cannot know whether a key contains PII or credential material.
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.
Implementations§
Source§impl DeterministicCborMapKey
impl DeterministicCborMapKey
Sourcepub fn text(value: String) -> DeterministicCborMapKey
pub fn text(value: String) -> DeterministicCborMapKey
Construct a text key without Unicode normalization.
Exact UTF-8 bytes define text-key equality in this profile. Validation and encoding must not normalize, case-fold, or apply locale-sensitive comparison to this value.
Trait Implementations§
Source§impl Debug for DeterministicCborMapKey
impl Debug for DeterministicCborMapKey
Source§impl Drop for DeterministicCborMapKey
impl Drop for DeterministicCborMapKey
impl ZeroizeOnDrop for DeterministicCborMapKey
Auto Trait Implementations§
impl Freeze for DeterministicCborMapKey
impl RefUnwindSafe for DeterministicCborMapKey
impl Send for DeterministicCborMapKey
impl Sync for DeterministicCborMapKey
impl Unpin for DeterministicCborMapKey
impl UnsafeUnpin for DeterministicCborMapKey
impl UnwindSafe for DeterministicCborMapKey
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