pub struct PolicyValidationError {
pub policy_id: String,
pub policy_name: String,
pub reason: String,
}Expand description
Error during policy compilation at load time.
This error is returned when a policy cannot be compiled due to invalid configuration, such as malformed regex patterns or invalid constraint types.
Fields§
§policy_id: StringThe unique identifier of the policy that failed validation.
policy_name: StringThe human-readable name of the policy.
reason: StringA description of why validation failed.
Trait Implementations§
Source§impl Clone for PolicyValidationError
impl Clone for PolicyValidationError
Source§fn clone(&self) -> PolicyValidationError
fn clone(&self) -> PolicyValidationError
Returns a duplicate of the value. Read more
1.0.0 · 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 PolicyValidationError
impl Debug for PolicyValidationError
Source§impl Display for PolicyValidationError
impl Display for PolicyValidationError
Source§impl Error for PolicyValidationError
impl Error for PolicyValidationError
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()
Auto Trait Implementations§
impl Freeze for PolicyValidationError
impl RefUnwindSafe for PolicyValidationError
impl Send for PolicyValidationError
impl Sync for PolicyValidationError
impl Unpin for PolicyValidationError
impl UnsafeUnpin for PolicyValidationError
impl UnwindSafe for PolicyValidationError
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