#[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 [OutputKey] = _
fn unknown_unchecked(val: u8) -> OutputKey
fn from_u8(val: u8) -> OutputKey
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 PartialOrd for OutputKey
impl PartialOrd for OutputKey
impl Copy for OutputKey
impl Eq for OutputKey
impl StructuralPartialEq for OutputKey
Auto Trait Implementations§
impl Freeze for OutputKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.