Trait hal::GetInfo

source ·
pub trait GetInfo<T: Serialize> {
    // Required method
    fn get_info(&self, network: Network) -> T;
}
Expand description

Get JSON-able objects that describe the type.

Required Methods§

source

fn get_info(&self, network: Network) -> T

Get a description of this object given the network of interest.

Implementations on Foreign Types§

source§

impl GetInfo<MnemonicInfo> for Mnemonic

source§

fn get_info(&self, network: Network) -> MnemonicInfo

source§

impl GetInfo<SeedInfo> for [u8; 64]

source§

fn get_info(&self, network: Network) -> SeedInfo

source§

impl GetInfo<BlockInfo> for Block

source§

fn get_info(&self, network: Network) -> BlockInfo

source§

impl GetInfo<EcdsaSignatureInfo> for Signature

source§

impl GetInfo<KeyInfo> for PrivateKey

source§

fn get_info(&self, network: Network) -> KeyInfo

source§

impl GetInfo<KeyInfo> for SecretKey

source§

fn get_info(&self, network: Network) -> KeyInfo

source§

impl GetInfo<PublicKeyInfo> for PublicKey

source§

fn get_info(&self, network: Network) -> PublicKeyInfo

source§

impl GetInfo<InvoiceInfo> for Invoice

source§

fn get_info(&self, network: Network) -> InvoiceInfo

source§

impl GetInfo<RouteHopInfo> for RouteHop

source§

fn get_info(&self, _network: Network) -> RouteHopInfo

source§

impl GetInfo<PsbtInfo> for PartiallySignedTransaction

source§

fn get_info(&self, network: Network) -> PsbtInfo

source§

impl GetInfo<PsbtInputInfo> for Input

source§

fn get_info(&self, network: Network) -> PsbtInputInfo

source§

impl GetInfo<PsbtOutputInfo> for Output

source§

fn get_info(&self, network: Network) -> PsbtOutputInfo

source§

impl GetInfo<InputInfo> for TxIn

source§

fn get_info(&self, network: Network) -> InputInfo

source§

impl GetInfo<OutputInfo> for TxOut

source§

fn get_info(&self, network: Network) -> OutputInfo

source§

impl GetInfo<TransactionInfo> for Transaction

source§

impl<'a> GetInfo<BlockHeaderInfo> for BlockHeader

source§

fn get_info(&self, _network: Network) -> BlockHeaderInfo

Implementors§