diff options
| -rw-r--r-- | rust/src/collaboration/folder.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/rust/src/collaboration/folder.rs b/rust/src/collaboration/folder.rs index 797bcdd4..1b2fee5a 100644 --- a/rust/src/collaboration/folder.rs +++ b/rust/src/collaboration/folder.rs @@ -1,3 +1,4 @@ +use std::fmt::Debug; use super::{Remote, RemoteProject}; use binaryninjacore_sys::*; use std::ptr::NonNull; @@ -125,11 +126,22 @@ impl RemoteFolder { } } +impl Debug for RemoteFolder { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + f.debug_struct("RemoteFolder") + .field("id", &self.id()) + .field("name", &self.name()) + .field("description", &self.description()) + .finish() + } +} + impl PartialEq for RemoteFolder { fn eq(&self, other: &Self) -> bool { self.id() == other.id() } } + impl Eq for RemoteFolder {} impl ToOwned for RemoteFolder { |
