[][src]Enum ckb_jsonrpc_types::OutputsValidator

pub enum OutputsValidator {
    Default,
    Passthrough,
}

Transaction output validators that prevent common mistakes.

Variants

Default

"default": The default validator which restricts the lock script and type script usage.

The default validator only allows outputs (a.k.a., cells) that

  • use either the secp256k1 or the secp256k1 multisig bundled in the genesis block via type script hash as the lock script,
  • and the type script is either empty or DAO.
Passthrough

"passthrough": bypass the validator, thus allow any kind of transaction outputs.

Implementations

impl OutputsValidator[src]

pub fn json_display(&self) -> String[src]

Gets the name of the validator when it is serialized into JSON string.

Trait Implementations

impl Clone for OutputsValidator[src]

impl Debug for OutputsValidator[src]

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

impl Eq for OutputsValidator[src]

impl Hash for OutputsValidator[src]

impl PartialEq<OutputsValidator> for OutputsValidator[src]

impl Serialize for OutputsValidator[src]

impl StructuralEq for OutputsValidator[src]

impl StructuralPartialEq for OutputsValidator[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, 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,