Trait InputView

Source
pub trait InputView<NoteRef> {
    // Required methods
    fn note_id(&self) -> &NoteRef;
    fn value(&self) -> Zatoshis;
}
Expand description

A trait that provides a minimized view of a Sapling input suitable for use in fee and change calculation.

Required Methods§

Source

fn note_id(&self) -> &NoteRef

An identifier for the input being spent.

Source

fn value(&self) -> Zatoshis

The value of the input being spent.

Implementations on Foreign Types§

Source§

impl InputView<()> for SpendInfo

Source§

fn note_id(&self) -> &()

Source§

fn value(&self) -> Zatoshis

Source§

impl<N> InputView<N> for Infallible

Source§

fn note_id(&self) -> &N

Source§

fn value(&self) -> Zatoshis

Source§

impl<NoteRef> InputView<NoteRef> for (NoteRef, NoteValue)

Source§

fn note_id(&self) -> &NoteRef

Source§

fn value(&self) -> Zatoshis

Implementors§

Source§

impl<NoteRef> InputView<NoteRef> for ReceivedNote<NoteRef, Note>