aboutsummaryrefslogtreecommitdiffstats
path: root/adenosine-cli/src/identifiers.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-11-10 16:33:06 -0800
committerBryan Newbold <bnewbold@robocracy.org>2022-11-10 16:33:06 -0800
commit582fcf863328840a09ff9ede919043ae266a2f87 (patch)
tree306bac86f442549aa77aeb560899312371e84f96 /adenosine-cli/src/identifiers.rs
parentcd67cbbb2827c161aa6e99c93fe57f5500cbb789 (diff)
downloadadenosine-582fcf863328840a09ff9ede919043ae266a2f87.tar.gz
adenosine-582fcf863328840a09ff9ede919043ae266a2f87.zip
cli: serializable DID
Diffstat (limited to 'adenosine-cli/src/identifiers.rs')
-rw-r--r--adenosine-cli/src/identifiers.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/adenosine-cli/src/identifiers.rs b/adenosine-cli/src/identifiers.rs
index ed9c0fd..a6a2696 100644
--- a/adenosine-cli/src/identifiers.rs
+++ b/adenosine-cli/src/identifiers.rs
@@ -152,7 +152,7 @@ fn test_aturi() {
}
/// A String (newtype) representing an NSID
-#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord)]
+#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, serde::Serialize)]
pub struct Nsid(String);
impl FromStr for Nsid {
@@ -205,7 +205,7 @@ fn test_nsid() {
assert_eq!(nsid.domain(), "atproto.com".to_string());
}
-#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord)]
+#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, serde::Serialize)]
pub struct Did(String);
impl FromStr for Did {