notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit 684bc5f913e5d67c623bfe5668b1c0fee13ee238
parent 6d0aa0e09c44d59d475d183255982b1edc3d6438
Author: William Casarin <jb55@jb55.com>
Date:   Thu,  6 Jul 2023 19:36:12 -0700

eventid: asref implementation

Diffstat:
Menostr/src/event.rs | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/enostr/src/event.rs b/enostr/src/event.rs @@ -83,6 +83,12 @@ impl std::str::FromStr for Event { #[derive(Serialize, Deserialize, Debug, Eq, PartialEq, Clone, Hash)] pub struct EventId(String); +impl AsRef<str> for EventId { + fn as_ref(&self) -> &str { + &self.0 + } +} + impl From<String> for EventId { fn from(s: String) -> Self { EventId(s)