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]

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]

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]

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]

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]

Delete a secret.

Trait Implementations

impl Debug for HelvetiaClient[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.