Implement Debug for Client

ಠ╭╮ಠ
This commit is contained in:
Curtis McEnroe 2015-12-22 00:41:36 -05:00
parent de9dea402d
commit dc513cab34
1 changed files with 11 additions and 0 deletions

View File

@ -1,5 +1,6 @@
//! Client.
use std::fmt;
use std::marker::PhantomData;
use hyper;
@ -18,6 +19,16 @@ pub struct Client<P: Provider> {
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> {
/// Creates a client.
///