pub trait InputView: Debug {
// Required methods
fn outpoint(&self) -> &OutPoint;
fn coin(&self) -> &TxOut<Zatoshis>;
// Provided method
fn serialized_size(&self) -> InputSize { ... }
}Expand description
This trait provides a minimized view of a transparent input suitable for use in fee and change computation.
Required Methods§
Provided Methods§
Sourcefn serialized_size(&self) -> InputSize
fn serialized_size(&self) -> InputSize
The size of this transparent input in a transaction, as used in ZIP 317.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl InputView for Infallible
impl InputView for Infallible
Source§impl InputView for TransparentInputInfo<Zatoshis>
Available on crate feature transparent-inputs only.
impl InputView for TransparentInputInfo<Zatoshis>
Available on crate feature
transparent-inputs only.