pub struct DecodeScriptResponse {
pub address: Option<String>,
pub asm: String,
pub desc: String,
pub p2sh: Option<String>,
pub segwit: Option<Value>,
pub type: String,
}Expand description
Response for the DecodeScript RPC method
Fields§
§address: Option<String>The Bitcoin address (only if a well-defined address exists)
asm: StringDisassembly of the script
desc: StringInferred descriptor for the script
p2sh: Option<String>address of P2SH script wrapping this redeem script (not returned for types that should not be wrapped)
segwit: Option<Value>Result of a witness output script wrapping this redeem script (not returned for types that should not be wrapped)
type: StringThe output type (e.g. nonstandard, anchor, pubkey, pubkeyhash, scripthash, multisig, nulldata, witness_v0_scripthash, witness_v0_keyhash, witness_v1_taproot, witness_unknown)
Trait Implementations§
Source§impl Clone for DecodeScriptResponse
impl Clone for DecodeScriptResponse
Source§fn clone(&self) -> DecodeScriptResponse
fn clone(&self) -> DecodeScriptResponse
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 DecodeScriptResponse
impl Debug for DecodeScriptResponse
Source§impl<'de> Deserialize<'de> for DecodeScriptResponse
impl<'de> Deserialize<'de> for DecodeScriptResponse
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 PartialEq for DecodeScriptResponse
impl PartialEq for DecodeScriptResponse
Source§impl Serialize for DecodeScriptResponse
impl Serialize for DecodeScriptResponse
impl StructuralPartialEq for DecodeScriptResponse
Auto Trait Implementations§
impl Freeze for DecodeScriptResponse
impl RefUnwindSafe for DecodeScriptResponse
impl Send for DecodeScriptResponse
impl Sync for DecodeScriptResponse
impl Unpin for DecodeScriptResponse
impl UnwindSafe for DecodeScriptResponse
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