nostrdb-rs

nostrdb in rust!
git clone git://jb55.com/nostrdb-rs
Log | Files | Refs | Submodules | README | LICENSE

subscription.rs (205B)


      1 #[derive(Debug, Clone, Copy, Eq, PartialEq)]
      2 pub struct Subscription(u64);
      3 
      4 impl Subscription {
      5     pub fn new(id: u64) -> Self {
      6         Self(id)
      7     }
      8     pub fn id(self) -> u64 {
      9         self.0
     10     }
     11 }