pub struct SignOptions {
pub label: Option<String>,
pub binding: Binding,
pub replay: Replay,
pub created: Option<u64>,
pub expires: Option<u64>,
pub ttl_seconds: Option<u64>,
pub nonce: Option<String>,
pub content_digest: ContentDigest,
pub components: Option<Vec<String>>,
pub tag: Option<String>,
}Expand description
Options for sign_request.
Fields§
§label: Option<String>Signature label (default: "eth").
binding: BindingBinding mode.
replay: ReplayReplay mode.
created: Option<u64>Unix timestamp for created (default: now).
expires: Option<u64>Unix timestamp for expires (default: created + ttl_seconds).
ttl_seconds: Option<u64>Signature validity in seconds (default: 60).
nonce: Option<String>Explicit nonce value (default: auto-generated).
content_digest: ContentDigestContent-Digest handling mode.
components: Option<Vec<String>>Override or extend the signed components.
tag: Option<String>Application-specific tag (e.g. "erc8128-login").
Trait Implementations§
Source§impl Clone for SignOptions
impl Clone for SignOptions
Source§fn clone(&self) -> SignOptions
fn clone(&self) -> SignOptions
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 SignOptions
impl Debug for SignOptions
Source§impl Default for SignOptions
impl Default for SignOptions
Source§fn default() -> SignOptions
fn default() -> SignOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SignOptions
impl RefUnwindSafe for SignOptions
impl Send for SignOptions
impl Sync for SignOptions
impl Unpin for SignOptions
impl UnsafeUnpin for SignOptions
impl UnwindSafe for SignOptions
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