pub struct SparkGetBalanceRpcInput {
pub method: SparkGetBalanceRpcInputMethod,
pub network: Option<SparkNetwork>,
}Expand description
Gets the balance of the Spark wallet.
JSON schema
{
"title": "SparkGetBalanceRpcInput",
"description": "Gets the balance of the Spark wallet.",
"type": "object",
"required": [
"method"
],
"properties": {
"method": {
"type": "string",
"enum": [
"getBalance"
]
},
"network": {
"allOf": [
{
"$ref": "#/components/schemas/SparkNetwork"
},
{
"default": "MAINNET"
}
]
}
},
"x-stainless-model": "wallets.spark_get_balance_rpc_input"
}Fields§
§method: SparkGetBalanceRpcInputMethod§network: Option<SparkNetwork>Trait Implementations§
Source§impl Clone for SparkGetBalanceRpcInput
impl Clone for SparkGetBalanceRpcInput
Source§fn clone(&self) -> SparkGetBalanceRpcInput
fn clone(&self) -> SparkGetBalanceRpcInput
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 SparkGetBalanceRpcInput
impl Debug for SparkGetBalanceRpcInput
Source§impl<'de> Deserialize<'de> for SparkGetBalanceRpcInput
impl<'de> Deserialize<'de> for SparkGetBalanceRpcInput
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<&SparkGetBalanceRpcInput> for SparkGetBalanceRpcInput
impl From<&SparkGetBalanceRpcInput> for SparkGetBalanceRpcInput
Source§fn from(value: &SparkGetBalanceRpcInput) -> Self
fn from(value: &SparkGetBalanceRpcInput) -> Self
Converts to this type from the input type.
Source§impl From<SparkGetBalanceRpcInput> for SparkRpcInput
impl From<SparkGetBalanceRpcInput> for SparkRpcInput
Source§fn from(value: SparkGetBalanceRpcInput) -> Self
fn from(value: SparkGetBalanceRpcInput) -> Self
Converts to this type from the input type.
Source§impl From<SparkGetBalanceRpcInput> for WalletRpcRequestBody
impl From<SparkGetBalanceRpcInput> for WalletRpcRequestBody
Source§fn from(value: SparkGetBalanceRpcInput) -> Self
fn from(value: SparkGetBalanceRpcInput) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SparkGetBalanceRpcInput
impl RefUnwindSafe for SparkGetBalanceRpcInput
impl Send for SparkGetBalanceRpcInput
impl Sync for SparkGetBalanceRpcInput
impl Unpin for SparkGetBalanceRpcInput
impl UnsafeUnpin for SparkGetBalanceRpcInput
impl UnwindSafe for SparkGetBalanceRpcInput
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