pub struct SignMessageParams {
pub message: String,
pub recipient: String,
pub nonce: [u8; 32],
pub callback_url: Option<String>,
pub state: Option<String>,
}Expand description
Parameters for signing a NEP-413 message.
Fields§
§message: StringThe message to sign.
recipient: StringThe recipient identifier (e.g., “alice.near” or “myapp.com”).
nonce: [u8; 32]A 32-byte nonce for replay protection.
Use generate_nonce() to create one with an embedded timestamp.
callback_url: Option<String>Optional callback URL for web wallets.
state: Option<String>Optional state parameter for CSRF protection.
Trait Implementations§
Source§impl Clone for SignMessageParams
impl Clone for SignMessageParams
Source§fn clone(&self) -> SignMessageParams
fn clone(&self) -> SignMessageParams
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 SignMessageParams
impl Debug for SignMessageParams
Source§impl PartialEq for SignMessageParams
impl PartialEq for SignMessageParams
impl Eq for SignMessageParams
impl StructuralPartialEq for SignMessageParams
Auto Trait Implementations§
impl Freeze for SignMessageParams
impl RefUnwindSafe for SignMessageParams
impl Send for SignMessageParams
impl Sync for SignMessageParams
impl Unpin for SignMessageParams
impl UnsafeUnpin for SignMessageParams
impl UnwindSafe for SignMessageParams
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.