Struct helvetia_client::Data[][src]

pub struct Data {
    pub token: String,
    pub data: String,
}

The required data for creating a Helvetia secret.

Fields

token: String

The owner token for the secret.

data: String

The data of the secret.

Implementations

impl Data[src]

pub fn new<T, D>(token: T, data: D) -> Self where
    T: Into<String>,
    D: Into<String>, 
[src]

Initialize the Data struct.

Trait Implementations

impl Clone for Data[src]

impl Debug for Data[src]

Auto Trait Implementations

impl RefUnwindSafe for Data

impl Send for Data

impl Sync for Data

impl Unpin for Data

impl UnwindSafe for Data

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.