Skip to main content

CipherLeaseApi

Trait CipherLeaseApi 

Source
pub trait CipherLeaseApi: Send + Sync {
    // Required methods
    fn post<'a, 'life0, 'async_trait>(
        &'life0 self,
        id: Uuid,
        access_request_create_request_model: AccessRequestCreateRequestModel,
    ) -> Pin<Box<dyn Future<Output = Result<AccessRequestResultResponseModel, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
    fn pre_check<'a, 'life0, 'async_trait>(
        &'life0 self,
        id: Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<AccessPreCheckResponseModel, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
    fn state<'a, 'life0, 'async_trait>(
        &'life0 self,
        id: Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<CipherAccessStateResponseModel, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn post<'a, 'life0, 'async_trait>( &'life0 self, id: Uuid, access_request_create_request_model: AccessRequestCreateRequestModel, ) -> Pin<Box<dyn Future<Output = Result<AccessRequestResultResponseModel, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

POST /leases/ciphers/{id}

Source

fn pre_check<'a, 'life0, 'async_trait>( &'life0 self, id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<AccessPreCheckResponseModel, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

GET /leases/ciphers/{id}/pre-check

Source

fn state<'a, 'life0, 'async_trait>( &'life0 self, id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<CipherAccessStateResponseModel, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

GET /leases/ciphers/{id}/state

Implementors§