pub struct OutputOnChain {
pub height: usize,
pub time_lock: Timelock,
pub key: CompressedPoint,
pub commitment: CompressedPoint,
pub txid: Option<[u8; 32]>,
}Expand description
An already existing transaction output.
Fields§
§height: usizeThe block height this output belongs to.
time_lock: TimelockThe timelock of this output, if any.
key: CompressedPointThe public key of this output, if any.
commitment: CompressedPointThe output’s commitment.
txid: Option<[u8; 32]>The hash of the transaction hash this output belongs to.
This is None when this field is not requested for in relevant functions.
Trait Implementations§
Source§impl Clone for OutputOnChain
impl Clone for OutputOnChain
Source§fn clone(&self) -> OutputOnChain
fn clone(&self) -> OutputOnChain
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 OutputOnChain
Source§impl Debug for OutputOnChain
impl Debug for OutputOnChain
impl Eq for OutputOnChain
Source§impl PartialEq for OutputOnChain
impl PartialEq for OutputOnChain
impl StructuralPartialEq for OutputOnChain
Auto Trait Implementations§
impl Freeze for OutputOnChain
impl RefUnwindSafe for OutputOnChain
impl Send for OutputOnChain
impl Sync for OutputOnChain
impl Unpin for OutputOnChain
impl UnsafeUnpin for OutputOnChain
impl UnwindSafe for OutputOnChain
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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<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§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 128 bytes