[][src]Struct ckb_jsonrpc_types::Script

pub struct Script {
    pub code_hash: H256,
    pub hash_type: ScriptHashType,
    pub args: JsonBytes,
}

Describes the lock script and type script for a cell.

Examples

{
  "args": "0x",
  "code_hash": "0x28e83a1277d48add8e72fadaa9248559e1b632bab2bd60b27955ebc4c03800a5",
  "hash_type": "data"
}

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

impl Clone for Script[src]

impl Debug for Script[src]

impl Default for Script[src]

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

impl Eq for Script[src]

impl From<Script> for Script[src]

impl From<Script> for Script[src]

impl Hash for Script[src]

impl PartialEq<Script> for Script[src]

impl Serialize for Script[src]

impl StructuralEq for Script[src]

impl StructuralPartialEq for Script[src]

Auto Trait Implementations

impl RefUnwindSafe for Script

impl Send for Script

impl Sync for Script

impl Unpin for Script

impl UnwindSafe for Script

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, 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.