pub struct SignResponse {
pub success: bool,
pub signature: Option<String>,
pub signer: Option<String>,
pub signature_type: Option<SignatureType>,
pub error: Option<String>,
}Expand description
Success response from POST /agent/sign.
Fields§
§success: booltrue if signing succeeded.
signature: Option<String>The hex-encoded signature.
signer: Option<String>Address that produced the signature.
signature_type: Option<SignatureType>The signature type used.
error: Option<String>Error message if signing failed.
Trait Implementations§
Source§impl Clone for SignResponse
impl Clone for SignResponse
Source§fn clone(&self) -> SignResponse
fn clone(&self) -> SignResponse
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 SignResponse
impl Debug for SignResponse
Source§impl<'de> Deserialize<'de> for SignResponse
impl<'de> Deserialize<'de> for SignResponse
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 SignResponse
impl RefUnwindSafe for SignResponse
impl Send for SignResponse
impl Sync for SignResponse
impl Unpin for SignResponse
impl UnsafeUnpin for SignResponse
impl UnwindSafe for SignResponse
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