Skip to content

Commit

Permalink
issue-auth debug for models::client
Browse files Browse the repository at this point in the history
  • Loading branch information
smart--petea committed Nov 21, 2023
1 parent a42d40a commit 2a51b7b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/models/client.rs
Original file line number Diff line number Diff line change
@@ -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<String>,
}

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
)
}
}

0 comments on commit 2a51b7b

Please sign in to comment.