pub struct Nip46ConnectionParameters {
pub remote_signer_pubkey: PublicKey,
pub relays: Vec<RelayUrl>,
pub secret: Option<String>,
}
Expand description
The connection parameters provided by an nsec bunker for a client connecting to it
usually as a bunker://
url
Fields§
§remote_signer_pubkey: PublicKey
The public key of the remote signer
relays: Vec<RelayUrl>
The relays to contact the remote signer on
secret: Option<String>
A secret to provide in the connect request to prove this client is authorized
Implementations§
Trait Implementations§
Source§impl Clone for Nip46ConnectionParameters
impl Clone for Nip46ConnectionParameters
Source§fn clone(&self) -> Nip46ConnectionParameters
fn clone(&self) -> Nip46ConnectionParameters
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 Nip46ConnectionParameters
impl Debug for Nip46ConnectionParameters
Source§impl<'de> Deserialize<'de> for Nip46ConnectionParameters
impl<'de> Deserialize<'de> for Nip46ConnectionParameters
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
Auto Trait Implementations§
impl Freeze for Nip46ConnectionParameters
impl RefUnwindSafe for Nip46ConnectionParameters
impl Send for Nip46ConnectionParameters
impl Sync for Nip46ConnectionParameters
impl Unpin for Nip46ConnectionParameters
impl UnwindSafe for Nip46ConnectionParameters
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