pub struct SignRequest {
pub signature_type: SignatureType,
pub message: Option<String>,
pub typed_data: Option<Value>,
pub transaction: Option<EvmTransaction>,
}Expand description
Request body for POST /agent/sign.
The body shape depends on signature_type:
personal_sign→messageis requiredeth_signTypedData_v4→typed_datais requiredeth_signTransaction→transactionis required
Fields§
§signature_type: SignatureTypeThe type of signature to produce.
message: Option<String>Plain text message (for personal_sign).
typed_data: Option<Value>EIP-712 typed data (for eth_signTypedData_v4).
transaction: Option<EvmTransaction>Transaction to sign (for eth_signTransaction).
Trait Implementations§
Source§impl Clone for SignRequest
impl Clone for SignRequest
Source§fn clone(&self) -> SignRequest
fn clone(&self) -> SignRequest
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 SignRequest
impl Debug for SignRequest
Source§impl<'de> Deserialize<'de> for SignRequest
impl<'de> Deserialize<'de> for SignRequest
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 SignRequest
impl RefUnwindSafe for SignRequest
impl Send for SignRequest
impl Sync for SignRequest
impl Unpin for SignRequest
impl UnsafeUnpin for SignRequest
impl UnwindSafe for SignRequest
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