pub struct NwcClientInfo {
pub client_nostr_pk: NostrPk,
pub wallet_nostr_pk: NostrPk,
pub label: String,
pub created_at: TimestampMs,
pub updated_at: TimestampMs,
}Expand description
Information about an existing NWC client.
This is used for listing clients to the app.
Fields§
§client_nostr_pk: NostrPkThe client public key (identifies the caller of this connection).
wallet_nostr_pk: NostrPkThe wallet service public key (identifies this connection).
label: StringHuman-readable label for this connection.
created_at: TimestampMsWhen this connection was created.
updated_at: TimestampMsWhen this connection was last updated.
Trait Implementations§
Source§impl Clone for NwcClientInfo
impl Clone for NwcClientInfo
Source§fn clone(&self) -> NwcClientInfo
fn clone(&self) -> NwcClientInfo
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 NwcClientInfo
impl Debug for NwcClientInfo
Source§impl<'de> Deserialize<'de> for NwcClientInfo
impl<'de> Deserialize<'de> for NwcClientInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NwcClientInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NwcClientInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NwcClientInfo
impl PartialEq for NwcClientInfo
Source§impl Serialize for NwcClientInfo
impl Serialize for NwcClientInfo
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 NwcClientInfo
Auto Trait Implementations§
impl Freeze for NwcClientInfo
impl RefUnwindSafe for NwcClientInfo
impl Send for NwcClientInfo
impl Sync for NwcClientInfo
impl Unpin for NwcClientInfo
impl UnsafeUnpin for NwcClientInfo
impl UnwindSafe for NwcClientInfo
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