From 2a51b7bda23f333b6ed702d5f69101fb69099a0a Mon Sep 17 00:00:00 2001 From: Petru Date: Tue, 21 Nov 2023 17:59:03 +0200 Subject: [PATCH] issue-auth debug for models::client --- src/models/client.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/models/client.rs b/src/models/client.rs index 1ff7b7c..afef0c1 100644 --- a/src/models/client.rs +++ b/src/models/client.rs @@ -1,8 +1,18 @@ use serde::Serialize; -#[derive(Default, Serialize, Debug)] +#[derive(Default, Serialize)] pub struct Client { pub id: i32, pub user_id: String, pub secret: Option, } + +impl std::fmt::Debug for Client { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!( + f, + "Client {{id: {:?}, user_id: {:?}}}", + self.id, self.user_id + ) + } +}