9 lines
10 KiB
HTML
9 lines
10 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A trait that provides a minimized view of a Sapling input suitable for use in fee and change calculation."><title>InputView in zcash_client_backend::fees::sapling - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-20739d33.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="zcash_client_backend" data-themes="" data-resource-suffix="" data-rustdoc-version="1.88.0-nightly (2e6882ac5 2025-05-05)" data-channel="nightly" data-search-js="search-f7877310.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-4e99c027.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-7ef8a74a.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../zcash_client_backend/index.html">zcash_<wbr>client_<wbr>backend</a><span class="version">0.18.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Input<wbr>View</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.note_id" title="note_id">note_id</a></li><li><a href="#tymethod.value" title="value">value</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-InputView%3CNoteRef%3E-for-(NoteRef,+NoteValue)" title="(NoteRef, NoteValue)">(NoteRef, NoteValue)</a></li><li><a href="#impl-InputView%3CN%3E-for-Infallible" title="Infallible">Infallible</a></li><li><a href="#impl-InputView%3C()%3E-for-SpendInfo" title="SpendInfo">SpendInfo</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In zcash_<wbr>client_<wbr>backend::<wbr>fees::<wbr>sapling</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">zcash_client_backend</a>::<wbr><a href="../index.html">fees</a>::<wbr><a href="index.html">sapling</a></div><h1>Trait <span class="trait">InputView</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/zcash_client_backend/fees/sapling.rs.html#66-71">Source</a> </span></div><pre class="rust item-decl"><code>pub trait InputView<NoteRef> {
|
|
// Required methods
|
|
fn <a href="#tymethod.note_id" class="fn">note_id</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&NoteRef</a>;
|
|
<span class="item-spacer"></span> fn <a href="#tymethod.value" class="fn">value</a>(&self) -> Zatoshis;
|
|
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A trait that provides a minimized view of a Sapling input suitable for use in
|
|
fee and change calculation.</p>
|
|
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.note_id" class="method"><a class="src rightside" href="../../../src/zcash_client_backend/fees/sapling.rs.html#68">Source</a><h4 class="code-header">fn <a href="#tymethod.note_id" class="fn">note_id</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&NoteRef</a></h4></section></summary><div class="docblock"><p>An identifier for the input being spent.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.value" class="method"><a class="src rightside" href="../../../src/zcash_client_backend/fees/sapling.rs.html#70">Source</a><h4 class="code-header">fn <a href="#tymethod.value" class="fn">value</a>(&self) -> Zatoshis</h4></section></summary><div class="docblock"><p>The value of the input being spent.</p>
|
|
</div></details></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-InputView%3C()%3E-for-SpendInfo" class="impl"><a class="src rightside" href="../../../src/zcash_client_backend/fees/sapling.rs.html#84-93">Source</a><a href="#impl-InputView%3C()%3E-for-SpendInfo" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.InputView.html" title="trait zcash_client_backend::fees::sapling::InputView">InputView</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> for SpendInfo</h3></section></summary><div class="impl-items"><section id="method.note_id" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/fees/sapling.rs.html#85-87">Source</a><a href="#method.note_id" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.note_id" class="fn">note_id</a>(&self) -> &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="method.value" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/fees/sapling.rs.html#89-92">Source</a><a href="#method.value" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.value" class="fn">value</a>(&self) -> Zatoshis</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-InputView%3CN%3E-for-Infallible" class="impl"><a class="src rightside" href="../../../src/zcash_client_backend/fees/sapling.rs.html#73-80">Source</a><a href="#impl-InputView%3CN%3E-for-Infallible" class="anchor">§</a><h3 class="code-header">impl<N> <a class="trait" href="trait.InputView.html" title="trait zcash_client_backend::fees::sapling::InputView">InputView</a><N> for <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h3></section></summary><div class="impl-items"><section id="method.note_id-1" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/fees/sapling.rs.html#74-76">Source</a><a href="#method.note_id-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.note_id" class="fn">note_id</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&N</a></h4></section><section id="method.value-1" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/fees/sapling.rs.html#77-79">Source</a><a href="#method.value-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.value" class="fn">value</a>(&self) -> Zatoshis</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-InputView%3CNoteRef%3E-for-(NoteRef,+NoteValue)" class="impl"><a class="src rightside" href="../../../src/zcash_client_backend/wallet.rs.html#455-466">Source</a><a href="#impl-InputView%3CNoteRef%3E-for-(NoteRef,+NoteValue)" class="anchor">§</a><h3 class="code-header">impl<NoteRef> <a class="trait" href="trait.InputView.html" title="trait zcash_client_backend::fees::sapling::InputView">InputView</a><NoteRef> for (NoteRef, NoteValue)</h3></section></summary><div class="impl-items"><section id="method.note_id-2" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/wallet.rs.html#456-458">Source</a><a href="#method.note_id-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.note_id" class="fn">note_id</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&NoteRef</a></h4></section><section id="method.value-2" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/wallet.rs.html#460-465">Source</a><a href="#method.value-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.value" class="fn">value</a>(&self) -> Zatoshis</h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-InputView%3CNoteRef%3E-for-ReceivedNote%3CNoteRef,+Note%3E" class="impl"><a class="src rightside" href="../../../src/zcash_client_backend/wallet.rs.html#468-480">Source</a><a href="#impl-InputView%3CNoteRef%3E-for-ReceivedNote%3CNoteRef,+Note%3E" class="anchor">§</a><h3 class="code-header">impl<NoteRef> <a class="trait" href="trait.InputView.html" title="trait zcash_client_backend::fees::sapling::InputView">InputView</a><NoteRef> for <a class="struct" href="../../wallet/struct.ReceivedNote.html" title="struct zcash_client_backend::wallet::ReceivedNote">ReceivedNote</a><NoteRef, Note></h3></section></div><script src="../../../trait.impl/zcash_client_backend/fees/sapling/trait.InputView.js" data-ignore-extern-crates="core,sapling_crypto,std" async></script></section></div></main></body></html> |