We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Debug
RemoteProject
1 parent 07d2ee4 commit 80b5b13Copy full SHA for 80b5b13
rust/src/collaboration/project.rs
@@ -1,4 +1,5 @@
1
use std::ffi::c_void;
2
+use std::fmt::Debug;
3
use std::path::PathBuf;
4
use std::ptr::NonNull;
5
use std::time::SystemTime;
@@ -870,11 +871,22 @@ impl RemoteProject {
870
871
//}
872
}
873
874
+impl Debug for RemoteProject {
875
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
876
+ f.debug_struct("RemoteProject")
877
+ .field("id", &self.id())
878
+ .field("name", &self.name())
879
+ .field("description", &self.description())
880
+ .finish()
881
+ }
882
+}
883
+
884
impl PartialEq for RemoteProject {
885
fn eq(&self, other: &Self) -> bool {
886
self.id() == other.id()
887
888
889
890
impl Eq for RemoteProject {}
891
892
impl ToOwned for RemoteProject {
0 commit comments