Enum cedar_policy::PolicyToJsonError
source · pub enum PolicyToJsonError {
Parse(ParseErrors),
Link(InstantiationError),
Serde(Error),
}
Expand description
Errors that can happen when getting the JSON representation of a policy
Variants§
Parse(ParseErrors)
Parse error in the policy text
Link(InstantiationError)
For linked policies, error linking the JSON representation
Serde(Error)
Error in the JSON serialization
Trait Implementations§
source§impl Debug for PolicyToJsonError
impl Debug for PolicyToJsonError
source§impl Display for PolicyToJsonError
impl Display for PolicyToJsonError
source§impl Error for PolicyToJsonError
impl Error for PolicyToJsonError
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<Error> for PolicyToJsonError
impl From<Error> for PolicyToJsonError
source§impl From<InstantiationError> for PolicyToJsonError
impl From<InstantiationError> for PolicyToJsonError
source§fn from(source: InstantiationError) -> Self
fn from(source: InstantiationError) -> Self
Converts to this type from the input type.
source§impl From<ParseErrors> for PolicyToJsonError
impl From<ParseErrors> for PolicyToJsonError
source§fn from(source: ParseErrors) -> Self
fn from(source: ParseErrors) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PolicyToJsonError
impl !RefUnwindSafe for PolicyToJsonError
impl Send for PolicyToJsonError
impl Sync for PolicyToJsonError
impl Unpin for PolicyToJsonError
impl !UnwindSafe for PolicyToJsonError
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more