pub enum AuthzError {
Storage(StorageError),
InvalidPolicy(String),
Query(QueryError),
LabelDenied(String),
RelDenied(String),
NoCandidates,
}Expand description
Errors produced while compiling or enforcing data access policies.
Variants§
Storage(StorageError)
The storage layer failed while reading policy state.
InvalidPolicy(String)
Stored policy metadata is malformed or internally inconsistent.
Query(QueryError)
The authorized query failed while executing against the engine.
LabelDenied(String)
The requested label lies outside the authorized domain.
RelDenied(String)
The requested relationship type is explicitly denied.
NoCandidates
No candidate matched the intersection of request and grants.
Trait Implementations§
Source§impl Debug for AuthzError
impl Debug for AuthzError
Source§impl Display for AuthzError
impl Display for AuthzError
Source§impl Error for AuthzError
impl Error for AuthzError
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<QueryError> for AuthzError
impl From<QueryError> for AuthzError
Source§fn from(source: QueryError) -> Self
fn from(source: QueryError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for AuthzError
impl From<StorageError> for AuthzError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AuthzError
impl RefUnwindSafe for AuthzError
impl Send for AuthzError
impl Sync for AuthzError
impl Unpin for AuthzError
impl UnsafeUnpin for AuthzError
impl UnwindSafe for AuthzError
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