Enum bitcoins::types::utxo::SpendScript [−][src]
pub enum SpendScript {
None,
Missing,
Known(Script),
}
Expand description
This type specifies whether a script is known to be none, or whether it is unknown.
Variants
None
ScriptPubkey is known to have no spend script
Missing
ScriptPubkey has a spend script, but it is unknown
Known(Script)
Tuple Fields
0: Script
ScriptPubkey has a spend script, and we know what it is
Implementations
Determine the spend script type from the script pubkey. This will always return Missing
or None
.
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SpendScript
impl Send for SpendScript
impl Sync for SpendScript
impl Unpin for SpendScript
impl UnwindSafe for SpendScript
Blanket Implementations
Mutably borrows from an owned value. Read more