[][src]Struct nash_protocol::types::keys::ApiKeys

pub struct ApiKeys {
    pub keys: KeyMap,
    pub session_id: String,
}

Structure of data returned by key creation on nash.io

Fields

keys: KeyMap

Base64 encoding of key data json object

session_id: String

Link to session associated with API key

Implementations

impl ApiKeys[src]

pub fn new(path: &str) -> ProtocolResult<Self>[src]

pub fn from_data(secret: &str, session: &str) -> ProtocolResult<Self>[src]

pub fn version(&self) -> u32[src]

Trait Implementations

impl Debug for ApiKeys[src]

impl<'de> Deserialize<'de> for ApiKeys[src]

Auto Trait Implementations

impl RefUnwindSafe for ApiKeys

impl Send for ApiKeys

impl Sync for ApiKeys

impl Unpin for ApiKeys

impl UnwindSafe for ApiKeys

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

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.