pub trait SecurityAdmin:
Send
+ Sync
+ 'static {
// Required methods
fn create_role<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateRoleRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateRoleResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_role<'life0, 'async_trait>(
&'life0 self,
request: Request<GetRoleRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetRoleResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn list_roles<'life0, 'async_trait>(
&'life0 self,
request: Request<Empty>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListRolesResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_role<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteRoleRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteRoleResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn create_binding<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateBindingRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateBindingResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_binding<'life0, 'async_trait>(
&'life0 self,
request: Request<GetBindingRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetBindingResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn list_bindings<'life0, 'async_trait>(
&'life0 self,
request: Request<ListBindingsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListBindingsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_binding<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteBindingRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteBindingResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Generated trait containing gRPC methods that should be implemented for use with SecurityAdminServer.
Required Methods§
Sourcefn create_role<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateRoleRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateRoleResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_role<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateRoleRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateRoleResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Roles
fn get_role<'life0, 'async_trait>(
&'life0 self,
request: Request<GetRoleRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetRoleResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_roles<'life0, 'async_trait>(
&'life0 self,
request: Request<Empty>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListRolesResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_role<'life0, 'async_trait>(
&'life0 self,
request: Request<DeleteRoleRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<DeleteRoleResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sourcefn create_binding<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateBindingRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateBindingResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_binding<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateBindingRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateBindingResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Bindings