From 0f919f8fa8043892e4f723d0aa382fa7fc044374 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Mon, 9 Feb 2026 17:01:38 -0800 Subject: [Rust] Impl `Debug` for `RemoteProject` --- rust/src/collaboration/project.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'rust/src/collaboration') diff --git a/rust/src/collaboration/project.rs b/rust/src/collaboration/project.rs index fa46e477..5eff24b0 100644 --- a/rust/src/collaboration/project.rs +++ b/rust/src/collaboration/project.rs @@ -1,4 +1,5 @@ use std::ffi::c_void; +use std::fmt::Debug; use std::path::PathBuf; use std::ptr::NonNull; use std::time::SystemTime; @@ -870,11 +871,22 @@ impl RemoteProject { //} } +impl Debug for RemoteProject { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + f.debug_struct("RemoteProject") + .field("id", &self.id()) + .field("name", &self.name()) + .field("description", &self.description()) + .finish() + } +} + impl PartialEq for RemoteProject { fn eq(&self, other: &Self) -> bool { self.id() == other.id() } } + impl Eq for RemoteProject {} impl ToOwned for RemoteProject { -- cgit v1.3.1