Struct nostr_sdk::nips::nip47::NostrWalletConnectURI
source · pub struct NostrWalletConnectURI {
pub public_key: XOnlyPublicKey,
pub relay_url: Url,
pub secret: SecretKey,
pub lud16: Option<String>,
}Expand description
Nostr Connect URI
Fields§
§public_key: XOnlyPublicKeyApp Pubkey
relay_url: UrlURL of the relay of choice where the App is connected and the Signer must send and listen for messages.
secret: SecretKey32-byte randomly generated hex encoded string
lud16: Option<String>A lightning address that clients can use to automatically setup the lud16 field on the user’s profile if they have none configured.
Implementations§
source§impl NostrWalletConnectURI
impl NostrWalletConnectURI
sourcepub fn new(
public_key: XOnlyPublicKey,
relay_url: Url,
secret: Option<SecretKey>,
lud16: Option<String>
) -> Result<NostrWalletConnectURI, Error>
pub fn new( public_key: XOnlyPublicKey, relay_url: Url, secret: Option<SecretKey>, lud16: Option<String> ) -> Result<NostrWalletConnectURI, Error>
Create new NostrWalletConnectURI
Trait Implementations§
source§impl Clone for NostrWalletConnectURI
impl Clone for NostrWalletConnectURI
source§fn clone(&self) -> NostrWalletConnectURI
fn clone(&self) -> NostrWalletConnectURI
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 NostrWalletConnectURI
impl Debug for NostrWalletConnectURI
source§impl Display for NostrWalletConnectURI
impl Display for NostrWalletConnectURI
source§impl FromStr for NostrWalletConnectURI
impl FromStr for NostrWalletConnectURI
source§impl PartialEq<NostrWalletConnectURI> for NostrWalletConnectURI
impl PartialEq<NostrWalletConnectURI> for NostrWalletConnectURI
source§fn eq(&self, other: &NostrWalletConnectURI) -> bool
fn eq(&self, other: &NostrWalletConnectURI) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for NostrWalletConnectURI
impl StructuralEq for NostrWalletConnectURI
impl StructuralPartialEq for NostrWalletConnectURI
Auto Trait Implementations§
impl RefUnwindSafe for NostrWalletConnectURI
impl Send for NostrWalletConnectURI
impl Sync for NostrWalletConnectURI
impl Unpin for NostrWalletConnectURI
impl UnwindSafe for NostrWalletConnectURI
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.