Struct egg_mode::KeyPair [] [src]

pub struct KeyPair {
    pub key: Cow<'static, str>,
    pub secret: Cow<'static, str>,
}

A key/secret pair representing an OAuth token.

This struct is used as part of the authentication process. You'll need to manually create at least one of these, to hold onto your consumer token.

For more information, see the documentation for Tokens.

Example

let con_token = egg_mode::KeyPair::new("consumer key", "consumer 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 KeyPair
[src]

[src]

Creates a KeyPair with the given key and secret.

This can be called with either &'static str (a string literal) or String for either parameter.

Trait Implementations

impl Debug for KeyPair
[src]

[src]

Formats the value using the given formatter.

impl Clone for KeyPair
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more