pub fn new(
        client_id: ClientId,
        client_secret: Option<ClientSecret>,
        auth_url: AuthUrl,
        token_url: Option<TokenUrl>,
    ) -> Self {
        Client {
            client_id,
            client_secret,
            auth_url,
            auth_type: AuthType::BasicAuth,
            token_url,
            redirect_url: None,
            introspection_url: None,
            revocation_url: None,
            device_authorization_url: None,
            phantom: PhantomData,
        }
    }
///
/// Initializes an OAuth2 client with the fields common to most OAuth2 flows.
///
/// # Arguments
///
/// * `client_id` -  Client ID
/// * `client_secret` -  Optional client secret. A client secret is generally used for private
///   (server-side) OAuth2 clients and omitted from public (client-side or native app) OAuth2
///   clients (see [RFC 8252](https://tools.ietf.org/html/rfc8252)).
/// * `auth_url` -  Authorization endpoint: used by the client to obtain authorization from
///   the resource owner via user-agent redirection. This URL is used in all standard OAuth2
///   flows except the [Resource Owner Password Credentials
///   Grant](https://tools.ietf.org/html/rfc6749#section-4.3) and the
///   [Client Credentials Grant](https://tools.ietf.org/html/rfc6749#section-4.4).
/// * `token_url` - Token endpoint: used by the client to exchange an authorization grant
///   (code) for an access token, typically with client authentication. This URL is used in
///   all standard OAuth2 flows except the
///   [Implicit Grant](https://tools.ietf.org/html/rfc6749#section-4.2). If this value is set
///   to `None`, the `exchange_*` methods will return `Err(RequestTokenError::Other(_))`.
///
Initializes an OAuth2 client with the fields common to most OAuth2 flows.
Initializes an OAuth2 client with the fields common to most OAuth2 flows .
pub fn new(
        client_id: ClientId,
        client_secret: Option<ClientSecret>,
        auth_url: AuthUrl,
        token_url: Option<TokenUrl>,
    ) -> Self {
        Client {
            client_id,
            client_secret,
            auth_url,
            auth_type: AuthType::BasicAuth,
            token_url,
            redirect_url: None,
            introspection_url: None,
            revocation_url: None,
            device_authorization_url: None,
            phantom: PhantomData,
        }
    }
pub fn new ( client_id : ClientId , client_secret : Option < ClientSecret > , auth_url : AuthUrl , token_url : Option < TokenUrl > , ) -> Self { Client { client_id , client_secret , auth_url , auth_type : AuthType :: BasicAuth , token_url , redirect_url : None , introspection_url : None , revocation_url : None , device_authorization_url : None , phantom : PhantomData , } }
Initializes an OAuth2 client with the fields common to most OAuth2 flows.
Initializes an OAuth2 client with the fields common to most OAuth2 flows .
client_id
ClientId
client_secret
Option<ClientSecret>
auth_url
AuthUrl
token_url
Option<TokenUrl>
client_id
ClientId
client_secret
Option<ClientSecret>
auth_url
AuthUrl
token_url
Option<TokenUrl>