pub struct DbNwcClientFields {
pub client_nostr_pk: NostrPk,
pub wallet_nostr_pk: NostrPk,
pub ciphertext: Vec<u8>,
}Expand description
A NWC client as represented in the DB, minus the timestamp fields.
Fields§
§client_nostr_pk: NostrPkThe NWC client app’s Nostr public key (identifies the caller).
wallet_nostr_pk: NostrPkThe wallet service’s Nostr public key (identifies this wallet).
ciphertext: Vec<u8>VFS-encrypted client secret data (wallet SK + label).
Trait Implementations§
Source§impl Clone for DbNwcClientFields
impl Clone for DbNwcClientFields
Source§fn clone(&self) -> DbNwcClientFields
fn clone(&self) -> DbNwcClientFields
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 DbNwcClientFields
impl Debug for DbNwcClientFields
Source§impl<'de> Deserialize<'de> for DbNwcClientFields
impl<'de> Deserialize<'de> for DbNwcClientFields
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DbNwcClientFields, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DbNwcClientFields, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DbNwcClientFields
impl PartialEq for DbNwcClientFields
Source§impl Serialize for DbNwcClientFields
impl Serialize for DbNwcClientFields
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DbNwcClientFields
Auto Trait Implementations§
impl Freeze for DbNwcClientFields
impl RefUnwindSafe for DbNwcClientFields
impl Send for DbNwcClientFields
impl Sync for DbNwcClientFields
impl Unpin for DbNwcClientFields
impl UnsafeUnpin for DbNwcClientFields
impl UnwindSafe for DbNwcClientFields
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