BinauthzManagementServiceV1

Trait BinauthzManagementServiceV1 

Source
pub trait BinauthzManagementServiceV1:
    Debug
    + Send
    + Sync {
    // Provided methods
    fn get_policy(
        &self,
        _req: GetPolicyRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Response<Policy>>> + Send { ... }
    fn update_policy(
        &self,
        _req: UpdatePolicyRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Response<Policy>>> + Send { ... }
    fn create_attestor(
        &self,
        _req: CreateAttestorRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Response<Attestor>>> + Send { ... }
    fn get_attestor(
        &self,
        _req: GetAttestorRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Response<Attestor>>> + Send { ... }
    fn update_attestor(
        &self,
        _req: UpdateAttestorRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Response<Attestor>>> + Send { ... }
    fn list_attestors(
        &self,
        _req: ListAttestorsRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Response<ListAttestorsResponse>>> + Send { ... }
    fn delete_attestor(
        &self,
        _req: DeleteAttestorRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Response<()>>> + Send { ... }
}
Expand description

Defines the trait used to implement super::client::BinauthzManagementServiceV1.

Application developers may need to implement this trait to mock client::BinauthzManagementServiceV1. In other use-cases, application developers only use client::BinauthzManagementServiceV1 and need not be concerned with this trait or its implementations.

Services gain new RPCs routinely. Consequently, this trait gains new methods too. To avoid breaking applications the trait provides a default implementation of each method. Most of these implementations just return an error.

Provided Methods§

Source

fn get_policy( &self, _req: GetPolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Policy>>> + Send

Source

fn update_policy( &self, _req: UpdatePolicyRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Policy>>> + Send

Source

fn create_attestor( &self, _req: CreateAttestorRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Attestor>>> + Send

Source

fn get_attestor( &self, _req: GetAttestorRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Attestor>>> + Send

Source

fn update_attestor( &self, _req: UpdateAttestorRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Attestor>>> + Send

Source

fn list_attestors( &self, _req: ListAttestorsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListAttestorsResponse>>> + Send

Source

fn delete_attestor( &self, _req: DeleteAttestorRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§