[][src]Trait vault_rs::Vault

pub trait Vault {
    fn read<'life0, 'life1, 'async_trait>(
        &'life0 self,
        path: &'life1 str,
        method: Method
    ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn read_with_query<'life0, 'life1, 'life2, 'async_trait, T: Serialize + Send + Sync + ?Sized>(
        &'life0 self,
        path: &'life1 str,
        method: Method,
        query: &'life2 T
    ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
    where
        T: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
fn write<'life0, 'life1, 'life2, 'async_trait, T: Serialize + Send + Sync>(
        &'life0 self,
        path: &'life1 str,
        payload: &'life2 T,
        method: Method,
        response_expected: bool
    ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
    where
        T: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; fn get<'life0, 'life1, 'async_trait>(
        &'life0 self,
        path: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: Sync + 'async_trait
, { ... }
fn get_with_query<'life0, 'life1, 'life2, 'async_trait, T: Serialize + Send + Sync + ?Sized>(
        &'life0 self,
        path: &'life1 str,
        query: &'life2 T
    ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
    where
        T: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: Sync + 'async_trait
, { ... }
fn list<'life0, 'life1, 'async_trait>(
        &'life0 self,
        path: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: Sync + 'async_trait
, { ... }
fn post<'life0, 'life1, 'life2, 'async_trait, T: Serialize + Send + Sync>(
        &'life0 self,
        path: &'life1 str,
        payload: &'life2 T,
        response_expected: bool
    ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
    where
        T: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: Sync + 'async_trait
, { ... }
fn put<'life0, 'life1, 'life2, 'async_trait, T: Serialize + Send + Sync>(
        &'life0 self,
        path: &'life1 str,
        payload: &'life2 T,
        response_expected: bool
    ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
    where
        T: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: Sync + 'async_trait
, { ... }
fn delete<'life0, 'life1, 'async_trait>(
        &'life0 self,
        path: &'life1 str,
        response_expected: bool
    ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: Sync + 'async_trait
, { ... } }

Trait implementing the basic API operations for Vault

Required methods

fn read<'life0, 'life1, 'async_trait>(
    &'life0 self,
    path: &'life1 str,
    method: Method
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

Read a generic Path from Vault

fn read_with_query<'life0, 'life1, 'life2, 'async_trait, T: Serialize + Send + Sync + ?Sized>(
    &'life0 self,
    path: &'life1 str,
    method: Method,
    query: &'life2 T
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>> where
    T: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

Read a generic Path from Vault with Query

fn write<'life0, 'life1, 'life2, 'async_trait, T: Serialize + Send + Sync>(
    &'life0 self,
    path: &'life1 str,
    payload: &'life2 T,
    method: Method,
    response_expected: bool
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>> where
    T: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

Write to a generic Path in Vault.

Loading content...

Provided methods

fn get<'life0, 'life1, 'async_trait>(
    &'life0 self,
    path: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: Sync + 'async_trait, 

Convenience method to Get a generic path from Vault

fn get_with_query<'life0, 'life1, 'life2, 'async_trait, T: Serialize + Send + Sync + ?Sized>(
    &'life0 self,
    path: &'life1 str,
    query: &'life2 T
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>> where
    T: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: Sync + 'async_trait, 

Convenience method to Get a generic path from VaultResult

fn list<'life0, 'life1, 'async_trait>(
    &'life0 self,
    path: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: Sync + 'async_trait, 

Convenience method to List a generic path from Vault

fn post<'life0, 'life1, 'life2, 'async_trait, T: Serialize + Send + Sync>(
    &'life0 self,
    path: &'life1 str,
    payload: &'life2 T,
    response_expected: bool
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>> where
    T: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: Sync + 'async_trait, 

Convenience method to Post to a generic path to Vault

fn put<'life0, 'life1, 'life2, 'async_trait, T: Serialize + Send + Sync>(
    &'life0 self,
    path: &'life1 str,
    payload: &'life2 T,
    response_expected: bool
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>> where
    T: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: Sync + 'async_trait, 

Convenience method to Put to a generic path to Vault

fn delete<'life0, 'life1, 'async_trait>(
    &'life0 self,
    path: &'life1 str,
    response_expected: bool
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: Sync + 'async_trait, 

Convenience method to Delete a Path from Vault

Loading content...

Implementations on Foreign Types

impl<'_, T> Vault for &'_ T where
    T: Vault + Send + Sync
[src]

Loading content...

Implementors

impl Vault for Client[src]

Loading content...