Trait nostr_database::NostrDatabaseExt
source · 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§
sourcefn 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 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