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 “data1” matches script code via cell data hash, and run the script code in v1 CKB VM.
Trait Implementations§
source§impl Clone for ScriptHashType
impl Clone for ScriptHashType
source§fn clone(&self) -> ScriptHashType
fn clone(&self) -> ScriptHashType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ScriptHashType
impl Debug for ScriptHashType
source§impl Default for ScriptHashType
impl Default for ScriptHashType
source§impl<'de> Deserialize<'de> for ScriptHashType
impl<'de> Deserialize<'de> for ScriptHashType
source§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
source§impl Display for ScriptHashType
impl Display for ScriptHashType
source§impl From<ScriptHashType> for ScriptHashType
impl From<ScriptHashType> for ScriptHashType
source§fn from(core: ScriptHashType) -> ScriptHashType
fn from(core: ScriptHashType) -> ScriptHashType
Converts to this type from the input type.
source§impl From<ScriptHashType> for ScriptHashType
impl From<ScriptHashType> for ScriptHashType
source§fn from(json: ScriptHashType) -> Self
fn from(json: ScriptHashType) -> Self
Converts to this type from the input type.
source§impl Hash for ScriptHashType
impl Hash for ScriptHashType
source§impl PartialEq<ScriptHashType> for ScriptHashType
impl PartialEq<ScriptHashType> for ScriptHashType
source§fn eq(&self, other: &ScriptHashType) -> bool
fn eq(&self, other: &ScriptHashType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl 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§
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