pub struct NwcRequest {
pub client_nostr_pk: NostrPk,
pub wallet_nostr_pk: NostrPk,
pub event_id: NostrEventId,
pub nip44_payload: Vec<u8>,
}Expand description
Request from nostr-bridge to user node with an encrypted NWC request.
Fields§
§client_nostr_pk: NostrPkThe nostr PK of the sender of the message (also, the NWC client app).
wallet_nostr_pk: NostrPkThe Nostr PK of the recipient (the wallet service PK).
event_id: NostrEventIdThe nostr event hex id. Used to build the response nostr event.
nip44_payload: Vec<u8>The NIP-44 v2 encrypted payload containing the NWC request.
Trait Implementations§
Source§impl Clone for NwcRequest
impl Clone for NwcRequest
Source§fn clone(&self) -> NwcRequest
fn clone(&self) -> NwcRequest
Returns a duplicate 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 NwcRequest
impl Debug for NwcRequest
Source§impl<'de> Deserialize<'de> for NwcRequest
impl<'de> Deserialize<'de> for NwcRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NwcRequest
impl PartialEq for NwcRequest
Source§impl Serialize for NwcRequest
impl Serialize for NwcRequest
impl StructuralPartialEq for NwcRequest
Auto Trait Implementations§
impl Freeze for NwcRequest
impl RefUnwindSafe for NwcRequest
impl Send for NwcRequest
impl Sync for NwcRequest
impl Unpin for NwcRequest
impl UnsafeUnpin for NwcRequest
impl UnwindSafe for NwcRequest
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