summaryrefslogtreecommitdiffstats
path: root/adenosine-cli
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-11-04 17:45:36 -0700
committerBryan Newbold <bnewbold@robocracy.org>2022-11-04 17:45:36 -0700
commit5f220855db95d006e4168356759a5b871899d759 (patch)
tree90ca099dc3816bdd15c367d59a80276393b94624 /adenosine-cli
parent2a31e7d490e72ae418959bec05d1d7392987dd80 (diff)
downloadadenosine-5f220855db95d006e4168356759a5b871899d759.tar.gz
adenosine-5f220855db95d006e4168356759a5b871899d759.zip
CLI: more derives on shared identifier code
Diffstat (limited to 'adenosine-cli')
-rw-r--r--adenosine-cli/src/identifiers.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/adenosine-cli/src/identifiers.rs b/adenosine-cli/src/identifiers.rs
index 8ea35b8..0cfe2ec 100644
--- a/adenosine-cli/src/identifiers.rs
+++ b/adenosine-cli/src/identifiers.rs
@@ -146,6 +146,7 @@ fn test_aturi() {
}
/// A String (newtype) representing an NSID
+#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord)]
pub struct Nsid(String);
impl FromStr for Nsid {
@@ -202,6 +203,7 @@ fn test_nsid() {
assert_eq!(nsid.domain(), "atproto.com".to_string());
}
+#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord)]
pub struct Did(String);
impl FromStr for Did {