pub struct TokenOutput {
pub id: Option<String>,
pub owner_public_key: String,
pub revocation_commitment: Option<String>,
pub token_amount: String,
pub token_identifier: Option<String>,
pub token_public_key: Option<String>,
pub withdraw_bond_sats: Option<f64>,
pub withdraw_relative_block_locktime: Option<f64>,
}Expand description
A Spark token output.
JSON schema
{
"title": "TokenOutput",
"description": "A Spark token output.",
"type": "object",
"required": [
"owner_public_key",
"token_amount"
],
"properties": {
"id": {
"type": "string"
},
"owner_public_key": {
"type": "string"
},
"revocation_commitment": {
"type": "string"
},
"token_amount": {
"type": "string"
},
"token_identifier": {
"type": "string"
},
"token_public_key": {
"type": "string"
},
"withdraw_bond_sats": {
"type": "number"
},
"withdraw_relative_block_locktime": {
"type": "number"
}
},
"x-stainless-model": "wallets.token_output"
}Fields§
§id: Option<String>§owner_public_key: String§revocation_commitment: Option<String>§token_amount: String§token_identifier: Option<String>§token_public_key: Option<String>§withdraw_bond_sats: Option<f64>§withdraw_relative_block_locktime: Option<f64>Trait Implementations§
Source§impl Clone for TokenOutput
impl Clone for TokenOutput
Source§fn clone(&self) -> TokenOutput
fn clone(&self) -> TokenOutput
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 TokenOutput
impl Debug for TokenOutput
Source§impl<'de> Deserialize<'de> for TokenOutput
impl<'de> Deserialize<'de> for TokenOutput
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<&TokenOutput> for TokenOutput
impl From<&TokenOutput> for TokenOutput
Source§fn from(value: &TokenOutput) -> Self
fn from(value: &TokenOutput) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TokenOutput
impl RefUnwindSafe for TokenOutput
impl Send for TokenOutput
impl Sync for TokenOutput
impl Unpin for TokenOutput
impl UnsafeUnpin for TokenOutput
impl UnwindSafe for TokenOutput
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