Trait UserRoleRepository
Source pub trait UserRoleRepository: Send + Sync {
// Required methods
fn create<'life0, 'life1, 'async_trait>(
&'life0 self,
assignment: &'life1 UserRoleAssignment,
) -> Pin<Box<dyn Future<Output = Result<UserRoleAssignment, String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn list_for_user<'life0, 'async_trait>(
&'life0 self,
user_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Vec<UserRoleAssignment>, String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn find_by_id<'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Option<UserRoleAssignment>, String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_primary_role<'life0, 'async_trait>(
&'life0 self,
user_id: Uuid,
role_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<UserRoleAssignment, String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}