parent
de9dea402d
commit
dc513cab34
|
@ -1,5 +1,6 @@
|
||||||
//! Client.
|
//! Client.
|
||||||
|
|
||||||
|
use std::fmt;
|
||||||
use std::marker::PhantomData;
|
use std::marker::PhantomData;
|
||||||
|
|
||||||
use hyper;
|
use hyper;
|
||||||
|
@ -18,6 +19,16 @@ pub struct Client<P: Provider> {
|
||||||
provider: PhantomData<P>,
|
provider: PhantomData<P>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<P: Provider> fmt::Debug for Client<P> {
|
||||||
|
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
|
||||||
|
f.debug_struct("Client")
|
||||||
|
.field("client_id", &self.client_id)
|
||||||
|
.field("client_secret", &self.client_secret)
|
||||||
|
.field("redirect_uri", &self.redirect_uri)
|
||||||
|
.finish()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl<P: Provider> Client<P> {
|
impl<P: Provider> Client<P> {
|
||||||
/// Creates a client.
|
/// Creates a client.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue