Make Client fields public

This commit is contained in:
Curtis McEnroe 2016-01-28 21:20:03 -05:00
parent 954975732b
commit ad23733ce4
1 changed files with 9 additions and 3 deletions

View File

@ -19,9 +19,15 @@ mod error;
/// OAuth 2.0 client.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Client<P: Provider> {
client_id: String,
client_secret: String,
redirect_uri: Option<String>,
/// Client ID.
pub client_id: String,
/// Client secret.
pub client_secret: String,
/// Redirect URI.
pub redirect_uri: Option<String>,
provider: PhantomData<P>,
}