diff options
Diffstat (limited to 'rust/src')
| -rw-r--r-- | rust/src/collaboration/project.rs | 12 |
1 files changed, 12 insertions, 0 deletions
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 { |
