Enum foursquare::Credentials [] [src]

pub enum Credentials {
    Client {
        client_id: String,
        client_secret: String,
    },
    User {
        oauth_token: String,
    },
}

types of credentials used to authenticate requests

see this doc for more information

Variants

Userless authentication

Fields of Client

User authentication, specific to a foursquare member

Fields of User

Methods

impl Credentials
[src]

[src]

Return a new set of Client credentials

[src]

Return a new User credential

Trait Implementations

impl Debug for Credentials
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Credentials
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Clone for Credentials
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more