pub enum AccessErrorKind {
Show 14 variants
NoPolicy,
UnsupportedAction(Action),
OperationDenied,
MissingRole {
required: BTreeSet<String>,
},
MissingScope {
required: BTreeSet<String>,
},
ColumnDenied {
column: String,
},
WildcardProjectionDenied,
UnsupportedColumnExpression {
context: &'static str,
},
ExplicitWriteColumnsRequired,
JoinedTableColumnPolicyUnsupported,
SourceTableColumnPolicyUnsupported,
AuxiliaryTableColumnPolicyUnsupported,
CteMutationUnsupported,
EmptyTable,
}Expand description
Specific access denial reason.
Variants§
NoPolicy
No matching table policy exists and default decision is deny.
UnsupportedAction(Action)
Command action is not a runtime data action covered by this policy.
OperationDenied
The table policy does not allow this operation.
MissingRole
Required role gate failed.
MissingScope
Required scope gate failed.
ColumnDenied
Column is not allowed by the relevant column rule.
WildcardProjectionDenied
* or table.* cannot be checked against a restrictive column rule.
UnsupportedColumnExpression
A projection expression cannot be mapped to a concrete column.
ExplicitWriteColumnsRequired
A write used positional or implicit payloads under a restrictive write rule.
JoinedTableColumnPolicyUnsupported
Joined table column policies cannot be enforced by this checker.
SourceTableColumnPolicyUnsupported
Source table column policies cannot be enforced without an explicit source projection.
AuxiliaryTableColumnPolicyUnsupported
UPDATE FROM / DELETE USING table column policies cannot be enforced by this checker.
CteMutationUnsupported
CTE aliases are read-only derived relations.
EmptyTable
Command did not carry a target table.
Trait Implementations§
Source§impl Clone for AccessErrorKind
impl Clone for AccessErrorKind
Source§fn clone(&self) -> AccessErrorKind
fn clone(&self) -> AccessErrorKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AccessErrorKind
impl Debug for AccessErrorKind
impl Eq for AccessErrorKind
Source§impl PartialEq for AccessErrorKind
impl PartialEq for AccessErrorKind
Source§fn eq(&self, other: &AccessErrorKind) -> bool
fn eq(&self, other: &AccessErrorKind) -> bool
self and other values to be equal, and is used by ==.