pub trait CedarEntity:
CedarIdentifiable
+ Serialize
+ Send
+ Sync {
// Provided methods
fn parents(
&self,
global: &impl Global,
) -> impl Future<Output = Result<impl IntoIterator<Item = JsonEntityUid>, Status>> + Send { ... }
fn additional_attributes(
&self,
global: &impl Global,
) -> impl Future<Output = Result<impl Serialize, Status>> + Send { ... }
fn attributes(
&self,
global: &impl Global,
) -> impl Future<Output = Result<impl Serialize, Status>> + Send { ... }
fn to_entity(
&self,
global: &impl Global,
schema: Option<&Schema>,
) -> impl Future<Output = Result<Entity, Status>> + Send { ... }
}
Provided Methods§
fn parents( &self, global: &impl Global, ) -> impl Future<Output = Result<impl IntoIterator<Item = JsonEntityUid>, Status>> + Send
fn additional_attributes( &self, global: &impl Global, ) -> impl Future<Output = Result<impl Serialize, Status>> + Send
Sourcefn attributes(
&self,
global: &impl Global,
) -> impl Future<Output = Result<impl Serialize, Status>> + Send
fn attributes( &self, global: &impl Global, ) -> impl Future<Output = Result<impl Serialize, Status>> + Send
Returns the attributes of the entity as a map.
Also includes additional attributes from additional_attributes
.
fn to_entity( &self, global: &impl Global, schema: Option<&Schema>, ) -> impl Future<Output = Result<Entity, Status>> + Send
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.