Struct ckb_jsonrpc_types::Script [−][src]
pub struct Script {
pub code_hash: H256,
pub hash_type: ScriptHashType,
pub args: JsonBytes,
}
Expand description
Describes the lock script and type script for a cell.
Examples
{
"code_hash": "0x28e83a1277d48add8e72fadaa9248559e1b632bab2bd60b27955ebc4c03800a5",
"hash_type": "data",
"args": "0x"
}
Fields
code_hash: H256
The hash used to match the script code.
hash_type: ScriptHashType
Specifies how to use the code_hash
to match the script code.
args: JsonBytes
Arguments for script.
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
Auto Trait Implementations
impl RefUnwindSafe for Script
impl UnwindSafe for Script
Blanket Implementations
Mutably borrows from an owned value. Read more