pub struct SpendChainReference {
pub coin_id: String,
pub confirmed: bool,
}Expand description
A chain reference, paired with whether this node actually OBSERVED it.
The confirmed flag is not decoration. Before confirmation the node knows the
coin id it INTENDS to create, and rendering that bare id beside a confirmed one presents an
intention as a fact. The two travel together so a client can render “expected” differently from
“on chain” without re-deriving the distinction — which is the derivation it would get wrong.
Fields§
§coin_id: StringThe coin id to look up.
confirmed: booltrue when this node observed the coin on chain; false when it is only the intended result.
Trait Implementations§
Source§impl Clone for SpendChainReference
impl Clone for SpendChainReference
Source§fn clone(&self) -> SpendChainReference
fn clone(&self) -> SpendChainReference
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 moreSource§impl Debug for SpendChainReference
impl Debug for SpendChainReference
Source§impl<'de> Deserialize<'de> for SpendChainReference
impl<'de> Deserialize<'de> for SpendChainReference
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SpendChainReference
Source§impl PartialEq for SpendChainReference
impl PartialEq for SpendChainReference
Source§impl Serialize for SpendChainReference
impl Serialize for SpendChainReference
impl StructuralPartialEq for SpendChainReference
Auto Trait Implementations§
impl Freeze for SpendChainReference
impl RefUnwindSafe for SpendChainReference
impl Send for SpendChainReference
impl Sync for SpendChainReference
impl Unpin for SpendChainReference
impl UnsafeUnpin for SpendChainReference
impl UnwindSafe for SpendChainReference
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