pub struct QuoteBinding {
pub key_count: u32,
pub pin: [u8; 32],
}Expand description
The commitment binding a quote prices against (ADR-0004).
key_count is the leaf count of the pinned commitment and the sole input to
the price formula; pin is that commitment’s hash. A quote carries both,
signed, so any receiver can recompute the price and resolve the pin to the
signed commitment.
Fields§
§key_count: u32Number of keys in the pinned commitment (the price driver).
pin: [u8; 32]Hash of the pinned commitment.
Trait Implementations§
Source§impl Clone for QuoteBinding
impl Clone for QuoteBinding
Source§fn clone(&self) -> QuoteBinding
fn clone(&self) -> QuoteBinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for QuoteBinding
Source§impl Debug for QuoteBinding
impl Debug for QuoteBinding
impl Eq for QuoteBinding
Source§impl PartialEq for QuoteBinding
impl PartialEq for QuoteBinding
impl StructuralPartialEq for QuoteBinding
Auto Trait Implementations§
impl Freeze for QuoteBinding
impl RefUnwindSafe for QuoteBinding
impl Send for QuoteBinding
impl Sync for QuoteBinding
impl Unpin for QuoteBinding
impl UnsafeUnpin for QuoteBinding
impl UnwindSafe for QuoteBinding
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more