pub struct SparkTransferTokensRpcInputParams {
pub output_selection_strategy: Option<SparkOutputSelectionStrategy>,
pub receiver_spark_address: String,
pub selected_outputs: Vec<OutputWithPreviousTransactionData>,
pub token_amount: f64,
pub token_identifier: String,
}Expand description
Parameters for the Spark transferTokens RPC.
JSON schema
{
"title": "SparkTransferTokensRpcInputParams",
"description": "Parameters for the Spark `transferTokens` RPC.",
"type": "object",
"required": [
"receiver_spark_address",
"token_amount",
"token_identifier"
],
"properties": {
"output_selection_strategy": {
"$ref": "#/components/schemas/SparkOutputSelectionStrategy"
},
"receiver_spark_address": {
"type": "string"
},
"selected_outputs": {
"type": "array",
"items": {
"$ref": "#/components/schemas/OutputWithPreviousTransactionData"
}
},
"token_amount": {
"type": "number"
},
"token_identifier": {
"type": "string"
}
},
"x-stainless-model": "wallets.spark_transfer_tokens_rpc_input_params"
}Fields§
§output_selection_strategy: Option<SparkOutputSelectionStrategy>§receiver_spark_address: String§selected_outputs: Vec<OutputWithPreviousTransactionData>§token_amount: f64§token_identifier: StringTrait Implementations§
Source§impl Clone for SparkTransferTokensRpcInputParams
impl Clone for SparkTransferTokensRpcInputParams
Source§fn clone(&self) -> SparkTransferTokensRpcInputParams
fn clone(&self) -> SparkTransferTokensRpcInputParams
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<'de> Deserialize<'de> for SparkTransferTokensRpcInputParams
impl<'de> Deserialize<'de> for SparkTransferTokensRpcInputParams
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
Source§impl From<&SparkTransferTokensRpcInputParams> for SparkTransferTokensRpcInputParams
impl From<&SparkTransferTokensRpcInputParams> for SparkTransferTokensRpcInputParams
Source§fn from(value: &SparkTransferTokensRpcInputParams) -> Self
fn from(value: &SparkTransferTokensRpcInputParams) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SparkTransferTokensRpcInputParams
impl RefUnwindSafe for SparkTransferTokensRpcInputParams
impl Send for SparkTransferTokensRpcInputParams
impl Sync for SparkTransferTokensRpcInputParams
impl Unpin for SparkTransferTokensRpcInputParams
impl UnsafeUnpin for SparkTransferTokensRpcInputParams
impl UnwindSafe for SparkTransferTokensRpcInputParams
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