Struct egg_mode::Token [] [src]

pub struct Token<'a> {
    pub key: Cow<'a, str>,
    pub secret: Cow<'a, str>,
}

A key/secret pair representing an OAuth token.

Fields

A key used to identify an application or user.

A private key used to sign messages from an application or user.

Methods

impl<'a> Token<'a>
[src]

Creates a Token with the given key and secret.

This can be called with either &str or String. In the former case the resulting Token will have the same lifetime as the given reference. If two Strings are given, the Token effectively has lifetime 'static.