Enum ckb_jsonrpc_types::ScriptHashType
source · [−]pub enum ScriptHashType {
Data,
Type,
Data1,
}Expand description
Specifies how the script code_hash is used to match the script code and how to run the code.
Allowed kinds: “data”, “type” and “data1”.
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, and run the script code in v0 CKB VM.
Type
Type “type” matches script code via cell type script hash.
Data1
Type “data” matches script code via cell data hash, and run the script code in v1 CKB VM.
Trait Implementations
sourceimpl Clone for ScriptHashType
impl Clone for ScriptHashType
sourcefn clone(&self) -> ScriptHashType
fn clone(&self) -> ScriptHashType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ScriptHashType
impl Debug for ScriptHashType
sourceimpl Default for ScriptHashType
impl Default for ScriptHashType
sourceimpl<'de> Deserialize<'de> for ScriptHashType
impl<'de> Deserialize<'de> for ScriptHashType
sourcefn 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
sourceimpl Display for ScriptHashType
impl Display for ScriptHashType
sourceimpl From<ScriptHashType> for ScriptHashType
impl From<ScriptHashType> for ScriptHashType
sourcefn from(json: ScriptHashType) -> Self
fn from(json: ScriptHashType) -> Self
Converts to this type from the input type.
sourceimpl From<ScriptHashType> for ScriptHashType
impl From<ScriptHashType> for ScriptHashType
sourcefn from(core: ScriptHashType) -> ScriptHashType
fn from(core: ScriptHashType) -> ScriptHashType
Converts to this type from the input type.
sourceimpl Hash for ScriptHashType
impl Hash for ScriptHashType
sourceimpl PartialEq<ScriptHashType> for ScriptHashType
impl PartialEq<ScriptHashType> for ScriptHashType
sourceimpl Serialize for ScriptHashType
impl Serialize for ScriptHashType
impl Eq for ScriptHashType
impl StructuralEq for ScriptHashType
impl StructuralPartialEq for ScriptHashType
Auto Trait Implementations
impl RefUnwindSafe for ScriptHashType
impl Send for ScriptHashType
impl Sync for ScriptHashType
impl Unpin for ScriptHashType
impl UnwindSafe for ScriptHashType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more