pub enum PolicyError {
Parse(DocumentError),
UnknownField {
field: String,
},
DuplicateField {
field: String,
},
FixedField {
field: String,
},
ClassGrant {
class: FieldClass,
action: Action,
},
TruncateBytes {
entry: String,
bytes: u32,
},
TooManyFields {
count: usize,
},
NotContentField {
field: String,
},
DuplicateContentEvent {
field: String,
},
}Expand description
Why a policy was refused (3.4.2). Each names the entry.
Variants§
Parse(DocumentError)
The bytes are not a rustev.redaction/1 document within bounds.
UnknownField
A fields entry names no catalogue field.
DuplicateField
A fields entry names a field another entry already names.
FixedField
A fields entry names a fixed field (3.4.4).
ClassGrant
A classes entry grants allow or truncate to a deny class.
TruncateBytes
A truncate bound outside 1..=4096; entry is the class or field.
TooManyFields
More than MAX_FIELD_OVERRIDES fields entries.
NotContentField
A content_events entry is not a catalogue content field.
DuplicateContentEvent
A content_events entry named twice.
Trait Implementations§
Source§impl Clone for PolicyError
impl Clone for PolicyError
Source§impl Debug for PolicyError
impl Debug for PolicyError
Source§impl Display for PolicyError
impl Display for PolicyError
impl Eq for PolicyError
Source§impl Error for PolicyError
impl Error for PolicyError
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 PolicyError
impl PartialEq for PolicyError
impl StructuralPartialEq for PolicyError
Auto Trait Implementations§
impl Freeze for PolicyError
impl RefUnwindSafe for PolicyError
impl Send for PolicyError
impl Sync for PolicyError
impl Unpin for PolicyError
impl UnsafeUnpin for PolicyError
impl UnwindSafe for PolicyError
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