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
Client
Userless authentication
Fields of Client
client_id: String | |
client_secret: String |
User
User authentication, specific to a foursquare member
Fields of User
oauth_token: String |
Methods
impl Credentials
[src]
fn client<I, S>(id: I, secret: S) -> Self where
I: Into<String>,
S: Into<String>,
[src]
I: Into<String>,
S: Into<String>,
Return a new set of Client credentials
fn user<T>(token: T) -> Self where
T: Into<String>,
[src]
T: Into<String>,
Return a new User credential
Trait Implementations
impl Debug for Credentials
[src]
impl PartialEq for Credentials
[src]
fn eq(&self, __arg_0: &Credentials) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Credentials) -> bool
[src]
This method tests for !=
.
impl Clone for Credentials
[src]
fn clone(&self) -> Credentials
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more