Skip to main content

Cache

Trait Cache 

Source
pub trait Cache: Send + Sync {
Show 32 methods // Required methods fn projects_get<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<Project>, CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn project_get<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<Project>, CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn project_set<'life0, 'life1, 'async_trait>( &'life0 self, project: &'life1 Project, ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn project_del<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn project_apikeys_get<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<Vec<ApiKey>, CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn project_apikeys_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, apikeys: &'life2 Vec<ApiKey>, ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn project_apikeys_del<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ids: &'life2 Vec<Uuid>, ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn project_identity_source_get<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<IdentitySource>, CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn project_identity_source_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, identity_source: &'life2 IdentitySource, ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn project_identity_source_del<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn project_schema_get<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<Schema>, CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn project_schema_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, schema: &'life2 Schema, ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn project_schema_del<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn project_entities_get<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, entity_uids: &'life2 [EntityUid], ) -> Pin<Box<dyn Future<Output = Result<Vec<Entity>, CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn project_entities_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, entities: &'life2 [Entity], ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn project_entities_del<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, entity_uids: &'life2 [EntityUid], ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn project_policies_get<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<HashMap<PolicyId, Policy>, CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn project_policies_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, policies: &'life2 HashMap<PolicyId, Policy>, ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn project_policies_del<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, policy_ids: &'life2 [PolicyId], ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn project_templates_get<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<HashMap<PolicyId, Template>, CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn project_templates_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, templates: &'life2 HashMap<PolicyId, Template>, ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn project_templates_del<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, policy_ids: &'life2 [PolicyId], ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn project_template_links_get<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<Vec<TemplateLink>, CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn project_template_links_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, template_links: &'life2 [TemplateLink], ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn project_template_links_del<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, policy_ids: &'life2 [PolicyId], ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn project_policy_set_get<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<PolicySet, CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn project_policy_set_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, policy_set: &'life2 PolicySet, ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn project_cedar_schema_get<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<Arc<Option<Schema>>, CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn project_cedar_entities_get<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, entity_uids: &'life2 Vec<EntityUid>, add_entities: &'life3 [Entity], cedar_schema: Option<&'life4 Schema>, ) -> Pin<Box<dyn Future<Output = Result<Entities, CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait; fn project_cedar_policy_set_get<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<Arc<PolicySet>, CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn apikeys_by_key_get<'life0, 'life1, 'async_trait>( &'life0 self, key: &'life1 str, ) -> Pin<Box<dyn Future<Output = Option<ApiKey>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn projects_entities_is_ancestor_of<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ancestor: &'life2 EntityUid, descendant: &'life3 EntityUid, ) -> Pin<Box<dyn Future<Output = Result<bool, CacheError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait;
}

Required Methods§

Source

fn projects_get<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<Project>, CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn project_get<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<Project>, CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn project_set<'life0, 'life1, 'async_trait>( &'life0 self, project: &'life1 Project, ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn project_del<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn project_apikeys_get<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<Vec<ApiKey>, CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn project_apikeys_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, apikeys: &'life2 Vec<ApiKey>, ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn project_apikeys_del<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ids: &'life2 Vec<Uuid>, ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn project_identity_source_get<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<IdentitySource>, CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn project_identity_source_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, identity_source: &'life2 IdentitySource, ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn project_identity_source_del<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn project_schema_get<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<Schema>, CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn project_schema_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, schema: &'life2 Schema, ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn project_schema_del<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn project_entities_get<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, entity_uids: &'life2 [EntityUid], ) -> Pin<Box<dyn Future<Output = Result<Vec<Entity>, CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn project_entities_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, entities: &'life2 [Entity], ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn project_entities_del<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, entity_uids: &'life2 [EntityUid], ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn project_policies_get<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<HashMap<PolicyId, Policy>, CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn project_policies_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, policies: &'life2 HashMap<PolicyId, Policy>, ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn project_policies_del<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, policy_ids: &'life2 [PolicyId], ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn project_templates_get<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<HashMap<PolicyId, Template>, CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn project_templates_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, templates: &'life2 HashMap<PolicyId, Template>, ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn project_templates_del<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, policy_ids: &'life2 [PolicyId], ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn project_policy_set_get<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<PolicySet, CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn project_policy_set_set<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, policy_set: &'life2 PolicySet, ) -> Pin<Box<dyn Future<Output = Result<(), CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn project_cedar_schema_get<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<Arc<Option<Schema>>, CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn project_cedar_entities_get<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, entity_uids: &'life2 Vec<EntityUid>, add_entities: &'life3 [Entity], cedar_schema: Option<&'life4 Schema>, ) -> Pin<Box<dyn Future<Output = Result<Entities, CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Get the Cedar Entities object for a project. If entity_uids is not empty, only return these entities and their ancestors.

Source

fn project_cedar_policy_set_get<'life0, 'life1, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ) -> Pin<Box<dyn Future<Output = Result<Arc<PolicySet>, CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get the Cedar PolicySet object for a project.

Source

fn apikeys_by_key_get<'life0, 'life1, 'async_trait>( &'life0 self, key: &'life1 str, ) -> Pin<Box<dyn Future<Output = Option<ApiKey>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn projects_entities_is_ancestor_of<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, project_id: &'life1 Uuid, ancestor: &'life2 EntityUid, descendant: &'life3 EntityUid, ) -> Pin<Box<dyn Future<Output = Result<bool, CacheError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§