Struct nostr_sdk::nips::nip46::NostrConnectURI
source · pub struct NostrConnectURI {
pub public_key: XOnlyPublicKey,
pub relay_url: Url,
pub metadata: NostrConnectMetadata,
}
Expand description
Nostr Connect URI
Fields§
§public_key: XOnlyPublicKey
App Pubkey
relay_url: Url
URL of the relay of choice where the App
is connected and the Signer
must send and listen for messages.
metadata: NostrConnectMetadata
Metadata
Implementations§
source§impl NostrConnectURI
impl NostrConnectURI
sourcepub fn new<S>(
public_key: XOnlyPublicKey,
relay_url: Url,
app_name: S
) -> NostrConnectURIwhere
S: Into<String>,
pub fn new<S>( public_key: XOnlyPublicKey, relay_url: Url, app_name: S ) -> NostrConnectURIwhere S: Into<String>,
Create new NostrConnectURI
sourcepub fn url(self, url: Url) -> NostrConnectURI
pub fn url(self, url: Url) -> NostrConnectURI
Set url
sourcepub fn description<S>(self, description: S) -> NostrConnectURIwhere
S: Into<String>,
pub fn description<S>(self, description: S) -> NostrConnectURIwhere S: Into<String>,
Set description
Trait Implementations§
source§impl Clone for NostrConnectURI
impl Clone for NostrConnectURI
source§fn clone(&self) -> NostrConnectURI
fn clone(&self) -> NostrConnectURI
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NostrConnectURI
impl Debug for NostrConnectURI
source§impl Display for NostrConnectURI
impl Display for NostrConnectURI
source§impl FromStr for NostrConnectURI
impl FromStr for NostrConnectURI
source§impl PartialEq<NostrConnectURI> for NostrConnectURI
impl PartialEq<NostrConnectURI> for NostrConnectURI
source§fn eq(&self, other: &NostrConnectURI) -> bool
fn eq(&self, other: &NostrConnectURI) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for NostrConnectURI
impl StructuralEq for NostrConnectURI
impl StructuralPartialEq for NostrConnectURI
Auto Trait Implementations§
impl RefUnwindSafe for NostrConnectURI
impl Send for NostrConnectURI
impl Sync for NostrConnectURI
impl Unpin for NostrConnectURI
impl UnwindSafe for NostrConnectURI
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.