pub struct TaskDraftPrepareResponse {
pub draft_id: Uuid,
pub memo_hash: Option<TaskDraftPrepareResponseMemoHash>,
pub memo_text: Option<String>,
pub payload_to_sign: String,
pub target_contract: Option<String>,
pub token_address: String,
}Expand description
TaskDraftPrepareResponse
Fields§
§draft_id: UuidPass this back to submitTaskDraft together with the signature
memo_hash: Option<TaskDraftPrepareResponseMemoHash>Optional 0x-prefixed hash of memo_text.
memo_text: Option<String>Optional human-readable memo included in the prepared draft.
payload_to_sign: StringOpaque hex string the caller signs offline (e.g. with
cast wallet sign --no-hash). Treat as opaque — its encoding may
change without notice.
target_contract: Option<String>Contract target for the calldata. Currently matches token_address.
token_address: StringERC-20 token contract address used for the submission fee
Trait Implementations§
Source§impl Clone for TaskDraftPrepareResponse
impl Clone for TaskDraftPrepareResponse
Source§fn clone(&self) -> TaskDraftPrepareResponse
fn clone(&self) -> TaskDraftPrepareResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TaskDraftPrepareResponse
impl Debug for TaskDraftPrepareResponse
Source§impl<'de> Deserialize<'de> for TaskDraftPrepareResponse
impl<'de> Deserialize<'de> for TaskDraftPrepareResponse
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 TaskDraftPrepareResponse
impl RefUnwindSafe for TaskDraftPrepareResponse
impl Send for TaskDraftPrepareResponse
impl Sync for TaskDraftPrepareResponse
impl Unpin for TaskDraftPrepareResponse
impl UnsafeUnpin for TaskDraftPrepareResponse
impl UnwindSafe for TaskDraftPrepareResponse
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