pub trait NostrDatabaseExt: NostrDatabase {
    // Provided methods
    fn profile<'life0, 'async_trait>(
        &'life0 self,
        public_key: PublicKey
    ) -> Pin<Box<dyn Future<Output = Result<Profile, Self::Err>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn contacts_public_keys<'life0, 'async_trait>(
        &'life0 self,
        public_key: PublicKey
    ) -> Pin<Box<dyn Future<Output = Result<Vec<PublicKey>, Self::Err>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn contacts<'life0, 'async_trait>(
        &'life0 self,
        public_key: PublicKey
    ) -> Pin<Box<dyn Future<Output = Result<BTreeSet<Profile>, Self::Err>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Nostr Database Extension

Provided Methods§

source

fn profile<'life0, 'async_trait>( &'life0 self, public_key: PublicKey ) -> Pin<Box<dyn Future<Output = Result<Profile, Self::Err>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Get profile metadata

source

fn contacts_public_keys<'life0, 'async_trait>( &'life0 self, public_key: PublicKey ) -> Pin<Box<dyn Future<Output = Result<Vec<PublicKey>, Self::Err>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Get contact list public keys

source

fn contacts<'life0, 'async_trait>( &'life0 self, public_key: PublicKey ) -> Pin<Box<dyn Future<Output = Result<BTreeSet<Profile>, Self::Err>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Get contact list with metadata of PublicKey

Implementors§