Struct helvetia_client::HelvetiaClient [−][src]
pub struct HelvetiaClient { /* fields omitted */ }
The HTTP client for the Helvetia API.
This client provides a Rust interface on top of the Helvetia API.
Implementations
impl HelvetiaClient
[src]
impl HelvetiaClient
[src]pub fn new(url: Url, client: Client) -> Res<Self>
[src]
Initialize a Helvetia client from a URL and a reqwest
client.
pub fn from_url(_url: Url) -> Res<Self>
[src]
Initialize a Helvetia client from a URL.
pub async fn create_secret<N>(
&self,
name: N,
data: Data,
meta: Option<Meta>
) -> Res<()> where
N: AsRef<str>,
[src]
&self,
name: N,
data: Data,
meta: Option<Meta>
) -> Res<()> where
N: AsRef<str>,
Create a secret, optionally with metadata.
pub async fn get_secret_data<N, T>(&self, name: N, token: T) -> Res<String> where
N: AsRef<str>,
T: AsRef<str>,
[src]
N: AsRef<str>,
T: AsRef<str>,
Get the data of a secret.
pub async fn get_secret_meta<N, T>(&self, name: N, token: T) -> Res<String> where
N: AsRef<str>,
T: AsRef<str>,
[src]
N: AsRef<str>,
T: AsRef<str>,
Get the metadata of a secret.
pub async fn delete_secret<N, T>(&self, name: N, token: T) -> Res<()> where
N: AsRef<str>,
T: AsRef<str>,
[src]
N: AsRef<str>,
T: AsRef<str>,
Delete a secret.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for HelvetiaClient
impl !RefUnwindSafe for HelvetiaClient
impl Send for HelvetiaClient
impl Send for HelvetiaClient
impl Sync for HelvetiaClient
impl Sync for HelvetiaClient
impl Unpin for HelvetiaClient
impl Unpin for HelvetiaClient
impl !UnwindSafe for HelvetiaClient
impl !UnwindSafe for HelvetiaClient
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]