pub enum PolicyParseError {
Json(Error),
InvalidResourceArn(String),
EmptyBucketInArn(String),
InvalidWildcard(String),
UnsupportedPrincipalType,
EmptyPrincipalList,
InvalidPrincipalShape,
UnsupportedConditionOperator {
op: String,
},
}Expand description
v0.8.4 #75: structured parse / validation errors. Surfaced via
[Display] for the public Result<_, String> boundary so existing
CLI / test call sites that string-match on the message keep working.
Variants§
Json(Error)
InvalidResourceArn(String)
EmptyBucketInArn(String)
InvalidWildcard(String)
UnsupportedPrincipalType
EmptyPrincipalList
InvalidPrincipalShape
UnsupportedConditionOperator
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()
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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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