pub struct ValidateAddressResponse {
pub address: Option<String>,
pub error: Option<String>,
pub error_locations: Option<Value>,
pub isscript: Option<bool>,
pub isvalid: bool,
pub iswitness: Option<bool>,
pub scriptPubKey: Option<ScriptBuf>,
pub witness_program: Option<String>,
pub witness_version: Option<u64>,
}Expand description
Response for the ValidateAddress RPC method
Fields§
§address: Option<String>The bitcoin address validated
error: Option<String>Error message, if any
error_locations: Option<Value>Indices of likely error locations in address, if known (e.g. Bech32 errors)
isscript: Option<bool>If the key is a script
isvalid: boolIf the address is valid or not
iswitness: Option<bool>If the address is a witness address
scriptPubKey: Option<ScriptBuf>The hex-encoded output script generated by the address
witness_program: Option<String>The hex value of the witness program
witness_version: Option<u64>The version number of the witness program
Trait Implementations§
Source§impl Clone for ValidateAddressResponse
impl Clone for ValidateAddressResponse
Source§fn clone(&self) -> ValidateAddressResponse
fn clone(&self) -> ValidateAddressResponse
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 ValidateAddressResponse
impl Debug for ValidateAddressResponse
Source§impl<'de> Deserialize<'de> for ValidateAddressResponse
impl<'de> Deserialize<'de> for ValidateAddressResponse
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 ValidateAddressResponse
impl PartialEq for ValidateAddressResponse
Source§impl Serialize for ValidateAddressResponse
impl Serialize for ValidateAddressResponse
impl StructuralPartialEq for ValidateAddressResponse
Auto Trait Implementations§
impl Freeze for ValidateAddressResponse
impl RefUnwindSafe for ValidateAddressResponse
impl Send for ValidateAddressResponse
impl Sync for ValidateAddressResponse
impl Unpin for ValidateAddressResponse
impl UnwindSafe for ValidateAddressResponse
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