pub enum RequestValidationError {
UndeclaredAction {
action: Arc<EntityUID>,
},
UndeclaredPrincipalType {
principal_ty: EntityType,
},
UndeclaredResourceType {
resource_ty: EntityType,
},
InvalidPrincipalType {
principal_ty: EntityType,
action: Arc<EntityUID>,
},
InvalidResourceType {
resource_ty: EntityType,
action: Arc<EntityUID>,
},
InvalidContext {
context: Context,
action: Arc<EntityUID>,
},
TypeOfContext(GetSchemaTypeError),
}
Variants§
UndeclaredAction
Request action is not declared in the schema
UndeclaredPrincipalType
Fields
§
principal_ty: EntityType
Principal type which was not declared in the schema
Request principal is of a type not declared in the schema
UndeclaredResourceType
Fields
§
resource_ty: EntityType
Resource type which was not declared in the schema
Request resource is of a type not declared in the schema
InvalidPrincipalType
Fields
§
principal_ty: EntityType
Principal type which is not valid
Request principal is of a type that is declared in the schema, but is not valid for the request action
InvalidResourceType
Fields
§
resource_ty: EntityType
Resource type which is not valid
Request resource is of a type that is declared in the schema, but is not valid for the request action
InvalidContext
Fields
Context does not comply with the shape specified for the request action
TypeOfContext(GetSchemaTypeError)
Error computing the type of the Context
; see the contained error type
for details about the kinds of errors that can occur
Trait Implementations§
source§impl Debug for RequestValidationError
impl Debug for RequestValidationError
source§impl Display for RequestValidationError
impl Display for RequestValidationError
source§impl Error for RequestValidationError
impl Error for RequestValidationError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 RefUnwindSafe for RequestValidationError
impl Send for RequestValidationError
impl Sync for RequestValidationError
impl Unpin for RequestValidationError
impl UnwindSafe for RequestValidationError
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