pub trait CedarIdentifiable {
const ENTITY_TYPE: EntityTypeName;
// Required method
fn entity_id(&self) -> EntityId;
// Provided method
fn entity_uid(&self) -> JsonEntityUid { ... }
}
Required Associated Constants§
Sourceconst ENTITY_TYPE: EntityTypeName
const ENTITY_TYPE: EntityTypeName
MUST be a normalized cedar entity type name.
See cedar_policy::EntityTypeName
and https://github.com/cedar-policy/rfcs/blob/main/text/0009-disallow-whitespace-in-entityuid.md.
Required Methods§
Provided Methods§
fn entity_uid(&self) -> JsonEntityUid
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.