#[non_exhaustive]pub enum OutputKey {
RedeemScript,
WitnessScript,
Bip32Derivation,
Amount,
Script,
TapInternalKey,
TapTree,
TapBip32Derivation,
Proprietary,
Unknown(u8),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RedeemScript
PSBT_OUT_REDEEM_SCRIPT
WitnessScript
PSBT_OUT_WITNESS_SCRIPT
Bip32Derivation
PSBT_OUT_BIP32_DERIVATION
Amount
PSBT_OUT_AMOUNT
Script
PSBT_OUT_SCRIPT
TapInternalKey
PSBT_OUT_TAP_INTERNAL_KEY
TapTree
PSBT_OUT_TAP_TREE
TapBip32Derivation
PSBT_OUT_TAP_BIP32_DERIVATION
Proprietary
PSBT_OUT_PROPRIETARY
Unknown(u8)
All unknown keys
Trait Implementations§
source§impl KeyType for OutputKey
impl KeyType for OutputKey
const STANDARD: &'static [Self] = _
fn unknown_unchecked(val: u8) -> Self
fn from_u8(val: u8) -> Self
fn into_u8(self) -> u8
fn has_key_data(self) -> bool
fn present_since(self) -> PsbtVer
fn deprecated_since(self) -> Option<PsbtVer>
fn is_required(self) -> bool
fn is_proprietary(self) -> bool
fn unknown(val: u8) -> Self
fn to_u8(&self) -> u8
fn is_allowed(self, version: PsbtVer) -> bool
source§impl Ord for OutputKey
impl Ord for OutputKey
source§impl PartialEq for OutputKey
impl PartialEq for OutputKey
source§impl PartialOrd for OutputKey
impl PartialOrd for OutputKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for OutputKey
impl Eq for OutputKey
impl StructuralEq for OutputKey
impl StructuralPartialEq for OutputKey
Auto Trait Implementations§
impl RefUnwindSafe for OutputKey
impl Send for OutputKey
impl Sync for OutputKey
impl Unpin for OutputKey
impl UnwindSafe for OutputKey
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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.