[][src]Enum ckb_jsonrpc_types::ScriptHashType

pub enum ScriptHashType {
    Data,
    Type,
}

Specifies how the script code_hash is used to match the script code.

Allowed values: "data" and "type".

Refer to the section Code Locating and Upgradable Script in the RFC CKB Transaction Structure.

Variants

Data

Type "data" matches script code via cell data hash.

Type

Type "type" matches script code via cell type script hash.

Trait Implementations

impl Clone for ScriptHashType[src]

impl Debug for ScriptHashType[src]

impl Default for ScriptHashType[src]

impl<'de> Deserialize<'de> for ScriptHashType[src]

impl Display for ScriptHashType[src]

impl Eq for ScriptHashType[src]

impl From<ScriptHashType> for ScriptHashType[src]

impl From<ScriptHashType> for ScriptHashType[src]

impl Hash for ScriptHashType[src]

impl PartialEq<ScriptHashType> for ScriptHashType[src]

impl Serialize for ScriptHashType[src]

impl StructuralEq for ScriptHashType[src]

impl StructuralPartialEq for ScriptHashType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.