@@ -24,33 +24,23 @@ impl<'a, C> TrailRoles<'a, C> {
2424 }
2525
2626 /// Creates a new role with the provided permissions.
27- pub async fn create (
28- & self ,
29- _cap_id : ObjectID ,
30- _name : impl Into < String > ,
31- _permissions : PermissionSet ,
32- ) -> Result < ( ) , Error >
27+ pub async fn create ( & self , _name : impl Into < String > , _permissions : PermissionSet ) -> Result < ( ) , Error >
3328 where
3429 C : AuditTrailFull ,
3530 {
3631 Err ( Error :: NotImplemented ( "TrailRoles::create" ) )
3732 }
3833
3934 /// Updates permissions for an existing role.
40- pub async fn update (
41- & self ,
42- _cap_id : ObjectID ,
43- _name : impl Into < String > ,
44- _permissions : PermissionSet ,
45- ) -> Result < ( ) , Error >
35+ pub async fn update ( & self , _name : impl Into < String > , _permissions : PermissionSet ) -> Result < ( ) , Error >
4636 where
4737 C : AuditTrailFull ,
4838 {
4939 Err ( Error :: NotImplemented ( "TrailRoles::update" ) )
5040 }
5141
5242 /// Deletes an existing role.
53- pub async fn delete ( & self , _cap_id : ObjectID , _name : impl Into < String > ) -> Result < ( ) , Error >
43+ pub async fn delete ( & self , _name : impl Into < String > ) -> Result < ( ) , Error >
5444 where
5545 C : AuditTrailFull ,
5646 {
@@ -67,27 +57,23 @@ pub struct RoleHandle<'a, C> {
6757
6858impl < ' a , C > RoleHandle < ' a , C > {
6959 pub ( crate ) fn new ( client : & ' a C , trail_id : ObjectID , name : String ) -> Self {
70- Self {
71- client,
72- trail_id,
73- name,
74- }
60+ Self { client, trail_id, name }
7561 }
7662
7763 pub fn name ( & self ) -> & str {
7864 & self . name
7965 }
8066
8167 /// Updates permissions for this role.
82- pub async fn update_permissions ( & self , _cap_id : ObjectID , _permissions : PermissionSet ) -> Result < ( ) , Error >
68+ pub async fn update_permissions ( & self , _permissions : PermissionSet ) -> Result < ( ) , Error >
8369 where
8470 C : AuditTrailFull ,
8571 {
8672 Err ( Error :: NotImplemented ( "RoleHandle::update_permissions" ) )
8773 }
8874
8975 /// Deletes this role.
90- pub async fn delete ( & self , _cap_id : ObjectID ) -> Result < ( ) , Error >
76+ pub async fn delete ( & self ) -> Result < ( ) , Error >
9177 where
9278 C : AuditTrailFull ,
9379 {
0 commit comments