[][src]Trait ckb_types::prelude::Builder

pub trait Builder: Default {
    type Entity: Entity;

    const NAME: &'static str;

    fn expected_length(&self) -> usize;
fn write<W>(&self, writer: &mut W) -> Result<(), Error>
    where
        W: Write
;
fn build(&self) -> Self::Entity; }

Associated Types

Loading content...

Associated Constants

const NAME: &'static str

Loading content...

Required methods

fn expected_length(&self) -> usize

fn write<W>(&self, writer: &mut W) -> Result<(), Error> where
    W: Write

fn build(&self) -> Self::Entity

Loading content...

Implementors

impl Builder for AddFilterBuilder[src]

type Entity = AddFilter

impl Builder for AddressBuilder[src]

type Entity = Address

impl Builder for AddressVecBuilder[src]

type Entity = AddressVec

impl Builder for AlertBuilder[src]

type Entity = Alert

impl Builder for BeUint32Builder[src]

type Entity = BeUint32

impl Builder for BeUint64Builder[src]

type Entity = BeUint64

impl Builder for BlockBuilder[src]

type Entity = Block

impl Builder for BlockExtBuilder[src]

type Entity = BlockExt

impl Builder for BlockProposalBuilder[src]

type Entity = BlockProposal

impl Builder for BlockTransactionsBuilder[src]

type Entity = BlockTransactions

impl Builder for BoolBuilder[src]

type Entity = Bool

impl Builder for BoolOptBuilder[src]

type Entity = BoolOpt

impl Builder for Byte32Builder[src]

type Entity = Byte32

impl Builder for Byte32OptBuilder[src]

type Entity = Byte32Opt

impl Builder for Byte32VecBuilder[src]

type Entity = Byte32Vec

impl Builder for BytesBuilder[src]

type Entity = Bytes

impl Builder for BytesOptBuilder[src]

type Entity = BytesOpt

impl Builder for BytesVecBuilder[src]

type Entity = BytesVec

impl Builder for CellDataEntryBuilder[src]

type Entity = CellDataEntry

impl Builder for CellDepBuilder[src]

type Entity = CellDep

impl Builder for CellDepVecBuilder[src]

type Entity = CellDepVec

impl Builder for CellEntryBuilder[src]

type Entity = CellEntry

impl Builder for CellInputBuilder[src]

type Entity = CellInput

impl Builder for CellInputVecBuilder[src]

type Entity = CellInputVec

impl Builder for CellOutputBuilder[src]

type Entity = CellOutput

impl Builder for CellOutputOptBuilder[src]

type Entity = CellOutputOpt

impl Builder for CellOutputVecBuilder[src]

type Entity = CellOutputVec

impl Builder for CellbaseWitnessBuilder[src]

type Entity = CellbaseWitness

impl Builder for ClearFilterBuilder[src]

type Entity = ClearFilter

impl Builder for CompactBlockBuilder[src]

type Entity = CompactBlock

impl Builder for DiscoveryBoolBuilder[src]

type Entity = DiscoveryBool

impl Builder for DiscoveryMessageBuilder[src]

type Entity = DiscoveryMessage

impl Builder for DiscoveryPayloadBuilder[src]

type Entity = DiscoveryPayload

impl Builder for EpochExtBuilder[src]

type Entity = EpochExt

impl Builder for FilteredBlockBuilder[src]

type Entity = FilteredBlock

impl Builder for GetBlockProposalBuilder[src]

type Entity = GetBlockProposal

impl Builder for GetBlockTransactionsBuilder[src]

type Entity = GetBlockTransactions

impl Builder for GetBlocksBuilder[src]

type Entity = GetBlocks

impl Builder for GetHeadersBuilder[src]

type Entity = GetHeaders

impl Builder for GetNodesBuilder[src]

type Entity = GetNodes

impl Builder for GetRelayTransactionsBuilder[src]

type Entity = GetRelayTransactions

impl Builder for HeaderBuilder[src]

type Entity = Header

impl Builder for HeaderVecBuilder[src]

type Entity = HeaderVec

impl Builder for HeaderViewBuilder[src]

type Entity = HeaderView

impl Builder for IdentifyBuilder[src]

type Entity = Identify

impl Builder for IdentifyMessageBuilder[src]

type Entity = IdentifyMessage

impl Builder for InIBDBuilder[src]

type Entity = InIBD

impl Builder for IndexTransactionBuilder[src]

type Entity = IndexTransaction

impl Builder for IndexTransactionVecBuilder[src]

type Entity = IndexTransactionVec

impl Builder for LiveCellOutputBuilder[src]

type Entity = LiveCellOutput

impl Builder for LockHashCellOutputBuilder[src]

type Entity = LockHashCellOutput

impl Builder for LockHashIndexBuilder[src]

type Entity = LockHashIndex

impl Builder for LockHashIndexStateBuilder[src]

type Entity = LockHashIndexState

impl Builder for MerkleProofBuilder[src]

type Entity = MerkleProof

impl Builder for NodeBuilder[src]

type Entity = Node

impl Builder for NodeVecBuilder[src]

type Entity = NodeVec

impl Builder for NodesBuilder[src]

type Entity = Nodes

impl Builder for OutPointBuilder[src]

type Entity = OutPoint

impl Builder for OutPointVecBuilder[src]

type Entity = OutPointVec

impl Builder for PingBuilder[src]

type Entity = Ping

impl Builder for PingMessageBuilder[src]

type Entity = PingMessage

impl Builder for PingPayloadBuilder[src]

type Entity = PingPayload

impl Builder for PongBuilder[src]

type Entity = Pong

impl Builder for PortOptBuilder[src]

type Entity = PortOpt

impl Builder for ProposalShortIdBuilder[src]

type Entity = ProposalShortId

impl Builder for ProposalShortIdVecBuilder[src]

type Entity = ProposalShortIdVec

impl Builder for RawAlertBuilder[src]

type Entity = RawAlert

impl Builder for RawHeaderBuilder[src]

type Entity = RawHeader

impl Builder for RawTransactionBuilder[src]

type Entity = RawTransaction

impl Builder for RelayMessageBuilder[src]

type Entity = RelayMessage

impl Builder for RelayTransactionBuilder[src]

type Entity = RelayTransaction

impl Builder for RelayTransactionHashesBuilder[src]

type Entity = RelayTransactionHashes

impl Builder for RelayTransactionVecBuilder[src]

type Entity = RelayTransactionVec

impl Builder for RelayTransactionsBuilder[src]

type Entity = RelayTransactions

impl Builder for ScriptBuilder[src]

type Entity = Script

impl Builder for ScriptOptBuilder[src]

type Entity = ScriptOpt

impl Builder for SendBlockBuilder[src]

type Entity = SendBlock

impl Builder for SendHeadersBuilder[src]

type Entity = SendHeaders

impl Builder for SetFilterBuilder[src]

type Entity = SetFilter

impl Builder for SyncMessageBuilder[src]

type Entity = SyncMessage

impl Builder for TimeBuilder[src]

type Entity = Time

impl Builder for TransactionBuilder[src]

type Entity = Transaction

impl Builder for TransactionInfoBuilder[src]

type Entity = TransactionInfo

impl Builder for TransactionKeyBuilder[src]

type Entity = TransactionKey

impl Builder for TransactionPointBuilder[src]

type Entity = TransactionPoint

impl Builder for TransactionPointOptBuilder[src]

type Entity = TransactionPointOpt

impl Builder for TransactionVecBuilder[src]

type Entity = TransactionVec

impl Builder for TransactionViewBuilder[src]

type Entity = TransactionView

impl Builder for Uint16Builder[src]

type Entity = Uint16

impl Builder for Uint32Builder[src]

type Entity = Uint32

impl Builder for Uint32VecBuilder[src]

type Entity = Uint32Vec

impl Builder for Uint64Builder[src]

type Entity = Uint64

impl Builder for Uint64VecBuilder[src]

type Entity = Uint64Vec

impl Builder for Uint128Builder[src]

type Entity = Uint128

impl Builder for Uint256Builder[src]

type Entity = Uint256

impl Builder for UncleBlockBuilder[src]

type Entity = UncleBlock

impl Builder for UncleBlockVecBuilder[src]

type Entity = UncleBlockVec

impl Builder for UncleBlockVecViewBuilder[src]

type Entity = UncleBlockVecView

impl Builder for WitnessArgsBuilder[src]

type Entity = WitnessArgs

Loading content...