pub enum PolicyWarning {
InvalidIdentityHash {
identity_hash: String,
label: String,
},
InvalidBlockedPrefix {
prefix: String,
},
NormalizedIdentityHash {
original: String,
normalized: String,
},
NormalizedBlockedPrefix {
original: String,
normalized: String,
},
UnknownGrant {
identity_hash: String,
grant: String,
},
DuplicateRosterEntry {
identity_hash: String,
kept_role: String,
dropped_role: String,
},
}Expand description
A non-fatal issue discovered during policy config loading.
Warnings don’t prevent the policy from loading — they report what was dropped, filtered, or normalized so the operator can fix their config.
Variants§
InvalidIdentityHash
A roster entry was dropped because the identity hash is not valid (must be exactly 32 lowercase hex characters).
InvalidBlockedPrefix
A blocked prefix was dropped because it’s too short (minimum 8 hex chars) or contains non-hex characters.
NormalizedIdentityHash
An identity hash was normalized from uppercase to lowercase.
NormalizedBlockedPrefix
A blocked prefix was normalized from uppercase to lowercase.
UnknownGrant
A grant was dropped from a roster entry because it’s not a known capability string (possible typo).
DuplicateRosterEntry
Duplicate roster entry for the same identity hash. The later entry was kept and the earlier one was dropped.
Trait Implementations§
Source§impl Clone for PolicyWarning
impl Clone for PolicyWarning
Source§fn clone(&self) -> PolicyWarning
fn clone(&self) -> PolicyWarning
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 PolicyWarning
impl Debug for PolicyWarning
Source§impl Display for PolicyWarning
impl Display for PolicyWarning
Source§impl PartialEq for PolicyWarning
impl PartialEq for PolicyWarning
Source§fn eq(&self, other: &PolicyWarning) -> bool
fn eq(&self, other: &PolicyWarning) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PolicyWarning
impl StructuralPartialEq for PolicyWarning
Auto Trait Implementations§
impl Freeze for PolicyWarning
impl RefUnwindSafe for PolicyWarning
impl Send for PolicyWarning
impl Sync for PolicyWarning
impl Unpin for PolicyWarning
impl UnsafeUnpin for PolicyWarning
impl UnwindSafe for PolicyWarning
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