GetInfo

Trait 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<BlockInfo> for Block

Source§

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

Source§

impl GetInfo<ConfidentialAssetInfo> for Asset

Source§

impl GetInfo<ConfidentialAssetInfo> for AssetId

Source§

impl GetInfo<ConfidentialNonceInfo> for Nonce

Source§

impl GetInfo<ConfidentialValueInfo> for Value

Source§

impl GetInfo<AssetIssuanceInfo> for AssetIssuance

Source§

impl GetInfo<InputInfo> for TxIn

Source§

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

Source§

impl GetInfo<InputWitnessInfo> for TxInWitness

Source§

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

Source§

impl GetInfo<OutputInfo> for TxOut

Source§

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

Source§

impl GetInfo<OutputWitnessInfo> for TxOutWitness

Source§

impl GetInfo<TransactionInfo> for Transaction

Source§

impl<'a> GetInfo<BlockHeaderInfo> for BlockHeader

Source§

impl<'a> GetInfo<ParamsInfo> for Params

Source§

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

Source§

impl<'tx> GetInfo<PeginDataInfo> for PeginData<'tx>

Source§

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

Source§

impl<'tx> GetInfo<PegoutDataInfo> for PegoutData<'tx>

Source§

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

Implementors§