pub enum PolicyParseError {
Yaml(Error),
InvalidRule {
rule: String,
message: String,
},
InvalidEffect(String),
InvalidTool(String),
InvalidFilter(String),
InvalidProfile(String),
UnknownRef(String),
CircularInclude {
cycle: String,
path: Option<String>,
},
UnknownInclude {
name: String,
suggestion: Option<String>,
},
InvalidNewRuleKey(String, String),
InvalidCapScopedFs(String, String),
InvalidArg(String),
}Expand description
Error during policy parsing (YAML, rule strings, expressions).
Variants§
Yaml(Error)
InvalidRule
InvalidEffect(String)
InvalidTool(String)
InvalidFilter(String)
InvalidProfile(String)
UnknownRef(String)
CircularInclude
Fields
UnknownInclude
InvalidNewRuleKey(String, String)
InvalidCapScopedFs(String, String)
InvalidArg(String)
Implementations§
Trait Implementations§
Source§impl Debug for PolicyParseError
impl Debug for PolicyParseError
Source§impl Display for PolicyParseError
impl Display for PolicyParseError
Source§impl Error for PolicyParseError
impl Error for PolicyParseError
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 From<Error> for PolicyParseError
impl From<Error> for PolicyParseError
Source§impl From<PolicyParseError> for PolicyError
impl From<PolicyParseError> for PolicyError
Source§fn from(source: PolicyParseError) -> Self
fn from(source: PolicyParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PolicyParseError
impl !RefUnwindSafe for PolicyParseError
impl Send for PolicyParseError
impl Sync for PolicyParseError
impl Unpin for PolicyParseError
impl UnsafeUnpin for PolicyParseError
impl !UnwindSafe for PolicyParseError
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