[−][src]Trait vault_rs::Vault
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,
&'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,
&'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,
&'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.
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,
&'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,
&'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,
&'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,
&'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,
&'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,
&'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
Implementations on Foreign Types
impl<'_, T> Vault for &'_ T where
T: Vault + Send + Sync,
[src]
T: Vault + Send + Sync,
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,
[src]
&'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, Q: Serialize + Send + Sync + ?Sized>(
&'life0 self,
path: &'life1 str,
method: Method,
query: &'life2 Q
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>> where
Q: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
path: &'life1 str,
method: Method,
query: &'life2 Q
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>> where
Q: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn write<'life0, 'life1, 'life2, 'async_trait, P: Serialize + Send + Sync>(
&'life0 self,
path: &'life1 str,
payload: &'life2 P,
method: Method,
response_expected: bool
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>> where
P: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
path: &'life1 str,
payload: &'life2 P,
method: Method,
response_expected: bool
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>> where
P: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Implementors
impl Vault for Client
[src]
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,
[src]
&'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,
[src]
&'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,
[src]
&'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,