Enum cedar_policy::ContextOrShape
source · pub enum ContextOrShape {
ActionContext(EntityUid),
EntityTypeShape(EntityTypeName),
}
Expand description
Describes in what action context or entity type shape a schema parsing error occurred.
Variants§
ActionContext(EntityUid)
An error occurred when parsing the context for the action with this
EntityUid
.
EntityTypeShape(EntityTypeName)
An error occurred when parsing the shape for the entity type with this
EntityTypeName
.
Trait Implementations§
source§impl Debug for ContextOrShape
impl Debug for ContextOrShape
source§impl Display for ContextOrShape
impl Display for ContextOrShape
source§impl From<ContextOrShape> for ContextOrShape
impl From<ContextOrShape> for ContextOrShape
source§fn from(value: ContextOrShape) -> Self
fn from(value: ContextOrShape) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ContextOrShape
impl RefUnwindSafe for ContextOrShape
impl Send for ContextOrShape
impl Sync for ContextOrShape
impl Unpin for ContextOrShape
impl UnwindSafe for ContextOrShape
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