diff --git a/src/client/mod.rs b/src/client/mod.rs index 603d677..05b1e6a 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -1,5 +1,6 @@ //! Client. +use std::fmt; use std::marker::PhantomData; use hyper; @@ -18,6 +19,16 @@ pub struct Client { provider: PhantomData

, } +impl fmt::Debug for Client

{ + 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 Client

{ /// Creates a client. ///