Enum scratchstack_aspen::AspenError
source · [−]pub enum AspenError {
InvalidAction(String),
InvalidConditionOperator(String),
InvalidPolicyVersion(String),
InvalidPrincipal(String),
InvalidResource(String),
InvalidSubstitution(String),
}Expand description
The error type used to convey Aspen errors.
Variants
InvalidAction(String)
An invalid action was specified in a policy. The string is the invalid action.
InvalidConditionOperator(String)
An invalid condition operator was specified in a condition clause. The string contains the invalid operator.
InvalidPolicyVersion(String)
An invalid policy version was specified in a policy. The string contains the invalid version.
InvalidPrincipal(String)
An invalid principal was specified ina policy. The string contains the invalid principal.
InvalidResource(String)
An invalid resource was specified in a policy. The string contains the invalid resource.
InvalidSubstitution(String)
An invalid variable substitution was specified in a policy. The string contains the invalid variable.
Trait Implementations
sourceimpl Debug for AspenError
impl Debug for AspenError
sourceimpl Display for AspenError
impl Display for AspenError
sourceimpl Error for AspenError
impl Error for AspenError
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl PartialEq<AspenError> for AspenError
impl PartialEq<AspenError> for AspenError
sourcefn eq(&self, other: &AspenError) -> bool
fn eq(&self, other: &AspenError) -> bool
impl Eq for AspenError
impl StructuralEq for AspenError
impl StructuralPartialEq for AspenError
Auto Trait Implementations
impl RefUnwindSafe for AspenError
impl Send for AspenError
impl Sync for AspenError
impl Unpin for AspenError
impl UnwindSafe for AspenError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more