Skip to main content

AuthzService

Trait AuthzService 

Source
pub trait AuthzService:
    Send
    + Sync
    + 'static {
    // Required methods
    fn put_schema<'life0, 'async_trait>(
        &'life0 self,
        request: Request<PutSchemaRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<PutSchemaResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn bind_schema<'life0, 'async_trait>(
        &'life0 self,
        request: Request<BindSchemaRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<BindSchemaResponse>, 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 get_schema<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetSchemaRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetSchemaResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn mutate_tuples<'life0, 'async_trait>(
        &'life0 self,
        request: Request<MutateTuplesRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<MutateTuplesResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn read_tuples<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ReadTuplesRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ReadTuplesResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn check_permission<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CheckPermissionRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<CheckPermissionResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn check_permissions<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CheckPermissionsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<CheckPermissionsResponse>, 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 AuthzServiceServer.

Required Methods§

Source

fn put_schema<'life0, 'async_trait>( &'life0 self, request: Request<PutSchemaRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<PutSchemaResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn bind_schema<'life0, 'async_trait>( &'life0 self, request: Request<BindSchemaRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<BindSchemaResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

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,

Source

fn get_schema<'life0, 'async_trait>( &'life0 self, request: Request<GetSchemaRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetSchemaResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn mutate_tuples<'life0, 'async_trait>( &'life0 self, request: Request<MutateTuplesRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<MutateTuplesResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn read_tuples<'life0, 'async_trait>( &'life0 self, request: Request<ReadTuplesRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ReadTuplesResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn check_permission<'life0, 'async_trait>( &'life0 self, request: Request<CheckPermissionRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<CheckPermissionResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn check_permissions<'life0, 'async_trait>( &'life0 self, request: Request<CheckPermissionsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<CheckPermissionsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§