Skip to content

Commit

Permalink
Config is Clone
Browse files Browse the repository at this point in the history
  • Loading branch information
illicitonion committed Feb 25, 2018
1 parent 08aad66 commit 66ef561
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ use curl::easy::Easy;
///
/// Stores the configuration for an OAuth2 client.
///
#[derive(Clone)]
pub struct Config {
client_id: String,
client_secret: String,
Expand All @@ -126,6 +127,7 @@ pub struct Config {
///
/// The default AuthType is *RequestBody*.
///
#[derive(Clone)]
pub enum AuthType {
/// The client_id and client_secret will be included as part of the request body.
RequestBody,
Expand Down Expand Up @@ -366,6 +368,7 @@ impl Config {
/// See https://tools.ietf.org/html/rfc6749#section-3.1.1
///
#[allow(missing_docs)]
#[derive(Clone)]
pub enum ResponseType {
Code,
Token,
Expand Down

0 comments on commit 66ef561

Please sign in to comment.