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. /// OAuth 2.0 client.
#[derive(Debug, Clone, PartialEq, Eq)] #[derive(Debug, Clone, PartialEq, Eq)]
pub struct Client<P: Provider> { pub struct Client<P: Provider> {
client_id: String, /// Client ID.
client_secret: String, pub client_id: String,
redirect_uri: Option<String>,
/// Client secret.
pub client_secret: String,
/// Redirect URI.
pub redirect_uri: Option<String>,
provider: PhantomData<P>, provider: PhantomData<P>,
} }