pub trait Builder: Default {
    type Entity: Entity;

    const NAME: &'static str;

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

Required Associated Types§

Required Associated Constants§

source

const NAME: &'static str

Required Methods§

source

fn expected_length(&self) -> usize

source

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

source

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

Implementors§

source§

impl Builder for AddFilterBuilder

§

type Entity = AddFilter

source§

const NAME: &'static str = "AddFilterBuilder"

source§

impl Builder for AddressBuilder

§

type Entity = Address

source§

const NAME: &'static str = "AddressBuilder"

source§

impl Builder for AddressVecBuilder

§

type Entity = AddressVec

source§

const NAME: &'static str = "AddressVecBuilder"

source§

impl Builder for AlertBuilder

§

type Entity = Alert

source§

const NAME: &'static str = "AlertBuilder"

source§

impl Builder for BeUint32Builder

§

type Entity = BeUint32

source§

const NAME: &'static str = "BeUint32Builder"

source§

impl Builder for BeUint64Builder

§

type Entity = BeUint64

source§

const NAME: &'static str = "BeUint64Builder"

source§

impl Builder for BlockBuilder

§

type Entity = Block

source§

const NAME: &'static str = "BlockBuilder"

source§

impl Builder for BlockExtBuilder

§

type Entity = BlockExt

source§

const NAME: &'static str = "BlockExtBuilder"

source§

impl Builder for BlockExtV1Builder

§

type Entity = BlockExtV1

source§

const NAME: &'static str = "BlockExtV1Builder"

source§

impl Builder for BlockFilterCheckPointsBuilder

§

type Entity = BlockFilterCheckPoints

source§

const NAME: &'static str = "BlockFilterCheckPointsBuilder"

source§

impl Builder for BlockFilterHashesBuilder

§

type Entity = BlockFilterHashes

source§

const NAME: &'static str = "BlockFilterHashesBuilder"

source§

impl Builder for BlockFilterMessageBuilder

§

type Entity = BlockFilterMessage

source§

const NAME: &'static str = "BlockFilterMessageBuilder"

source§

impl Builder for BlockFiltersBuilder

§

type Entity = BlockFilters

source§

const NAME: &'static str = "BlockFiltersBuilder"

source§

impl Builder for BlockProposalBuilder

§

type Entity = BlockProposal

source§

const NAME: &'static str = "BlockProposalBuilder"

source§

impl Builder for BlockTransactionsBuilder

§

type Entity = BlockTransactions

source§

const NAME: &'static str = "BlockTransactionsBuilder"

source§

impl Builder for BlockV1Builder

§

type Entity = BlockV1

source§

const NAME: &'static str = "BlockV1Builder"

source§

impl Builder for BoolBuilder

§

type Entity = Bool

source§

const NAME: &'static str = "BoolBuilder"

source§

impl Builder for BoolOptBuilder

§

type Entity = BoolOpt

source§

const NAME: &'static str = "BoolOptBuilder"

source§

impl Builder for Byte32Builder

§

type Entity = Byte32

source§

const NAME: &'static str = "Byte32Builder"

source§

impl Builder for Byte32OptBuilder

§

type Entity = Byte32Opt

source§

const NAME: &'static str = "Byte32OptBuilder"

source§

impl Builder for Byte32VecBuilder

§

type Entity = Byte32Vec

source§

const NAME: &'static str = "Byte32VecBuilder"

source§

impl Builder for BytesBuilder

§

type Entity = Bytes

source§

const NAME: &'static str = "BytesBuilder"

source§

impl Builder for BytesOptBuilder

§

type Entity = BytesOpt

source§

const NAME: &'static str = "BytesOptBuilder"

source§

impl Builder for BytesVecBuilder

§

type Entity = BytesVec

source§

const NAME: &'static str = "BytesVecBuilder"

source§

impl Builder for CellDataEntryBuilder

§

type Entity = CellDataEntry

source§

const NAME: &'static str = "CellDataEntryBuilder"

source§

impl Builder for CellDepBuilder

§

type Entity = CellDep

source§

const NAME: &'static str = "CellDepBuilder"

source§

impl Builder for CellDepVecBuilder

§

type Entity = CellDepVec

source§

const NAME: &'static str = "CellDepVecBuilder"

source§

impl Builder for CellEntryBuilder

§

type Entity = CellEntry

source§

const NAME: &'static str = "CellEntryBuilder"

source§

impl Builder for CellInputBuilder

§

type Entity = CellInput

source§

const NAME: &'static str = "CellInputBuilder"

source§

impl Builder for CellInputVecBuilder

§

type Entity = CellInputVec

source§

const NAME: &'static str = "CellInputVecBuilder"

source§

impl Builder for CellOutputBuilder

§

type Entity = CellOutput

source§

const NAME: &'static str = "CellOutputBuilder"

source§

impl Builder for CellOutputOptBuilder

§

type Entity = CellOutputOpt

source§

const NAME: &'static str = "CellOutputOptBuilder"

source§

impl Builder for CellOutputVecBuilder

§

type Entity = CellOutputVec

source§

const NAME: &'static str = "CellOutputVecBuilder"

source§

impl Builder for CellbaseWitnessBuilder

§

type Entity = CellbaseWitness

source§

const NAME: &'static str = "CellbaseWitnessBuilder"

source§

impl Builder for ClearFilterBuilder

§

type Entity = ClearFilter

source§

const NAME: &'static str = "ClearFilterBuilder"

source§

impl Builder for CompactBlockBuilder

§

type Entity = CompactBlock

source§

const NAME: &'static str = "CompactBlockBuilder"

source§

impl Builder for CompactBlockV1Builder

§

type Entity = CompactBlockV1

source§

const NAME: &'static str = "CompactBlockV1Builder"

source§

impl Builder for DiscoveryMessageBuilder

§

type Entity = DiscoveryMessage

source§

const NAME: &'static str = "DiscoveryMessageBuilder"

source§

impl Builder for DiscoveryPayloadBuilder

§

type Entity = DiscoveryPayload

source§

const NAME: &'static str = "DiscoveryPayloadBuilder"

source§

impl Builder for EpochExtBuilder

§

type Entity = EpochExt

source§

const NAME: &'static str = "EpochExtBuilder"

source§

impl Builder for FilteredBlockBuilder

§

type Entity = FilteredBlock

source§

const NAME: &'static str = "FilteredBlockBuilder"

source§

impl Builder for FilteredBlockVecBuilder

§

type Entity = FilteredBlockVec

source§

const NAME: &'static str = "FilteredBlockVecBuilder"

source§

impl Builder for GetBlockFilterCheckPointsBuilder

§

type Entity = GetBlockFilterCheckPoints

source§

const NAME: &'static str = "GetBlockFilterCheckPointsBuilder"

source§

impl Builder for GetBlockFilterHashesBuilder

§

type Entity = GetBlockFilterHashes

source§

const NAME: &'static str = "GetBlockFilterHashesBuilder"

source§

impl Builder for GetBlockFiltersBuilder

§

type Entity = GetBlockFilters

source§

const NAME: &'static str = "GetBlockFiltersBuilder"

source§

impl Builder for GetBlockProposalBuilder

§

type Entity = GetBlockProposal

source§

const NAME: &'static str = "GetBlockProposalBuilder"

source§

impl Builder for GetBlockTransactionsBuilder

§

type Entity = GetBlockTransactions

source§

const NAME: &'static str = "GetBlockTransactionsBuilder"

source§

impl Builder for GetBlocksBuilder

§

type Entity = GetBlocks

source§

const NAME: &'static str = "GetBlocksBuilder"

source§

impl Builder for GetBlocksProofBuilder

§

type Entity = GetBlocksProof

source§

const NAME: &'static str = "GetBlocksProofBuilder"

source§

impl Builder for GetHeadersBuilder

§

type Entity = GetHeaders

source§

const NAME: &'static str = "GetHeadersBuilder"

source§

impl Builder for GetLastStateBuilder

§

type Entity = GetLastState

source§

const NAME: &'static str = "GetLastStateBuilder"

source§

impl Builder for GetLastStateProofBuilder

§

type Entity = GetLastStateProof

source§

const NAME: &'static str = "GetLastStateProofBuilder"

source§

impl Builder for GetNodes2Builder

§

type Entity = GetNodes2

source§

const NAME: &'static str = "GetNodes2Builder"

source§

impl Builder for GetNodesBuilder

§

type Entity = GetNodes

source§

const NAME: &'static str = "GetNodesBuilder"

source§

impl Builder for GetRelayTransactionsBuilder

§

type Entity = GetRelayTransactions

source§

const NAME: &'static str = "GetRelayTransactionsBuilder"

source§

impl Builder for GetTransactionsProofBuilder

§

type Entity = GetTransactionsProof

source§

const NAME: &'static str = "GetTransactionsProofBuilder"

source§

impl Builder for HeaderBuilder

§

type Entity = Header

source§

const NAME: &'static str = "HeaderBuilder"

source§

impl Builder for HeaderDigestBuilder

§

type Entity = HeaderDigest

source§

const NAME: &'static str = "HeaderDigestBuilder"

source§

impl Builder for HeaderDigestVecBuilder

§

type Entity = HeaderDigestVec

source§

const NAME: &'static str = "HeaderDigestVecBuilder"

source§

impl Builder for HeaderVecBuilder

§

type Entity = HeaderVec

source§

const NAME: &'static str = "HeaderVecBuilder"

source§

impl Builder for HeaderViewBuilder

§

type Entity = HeaderView

source§

const NAME: &'static str = "HeaderViewBuilder"

source§

impl Builder for IdentifyBuilder

§

type Entity = Identify

source§

const NAME: &'static str = "IdentifyBuilder"

source§

impl Builder for IdentifyMessageBuilder

§

type Entity = IdentifyMessage

source§

const NAME: &'static str = "IdentifyMessageBuilder"

source§

impl Builder for InIBDBuilder

§

type Entity = InIBD

source§

const NAME: &'static str = "InIBDBuilder"

source§

impl Builder for IndexTransactionBuilder

§

type Entity = IndexTransaction

source§

const NAME: &'static str = "IndexTransactionBuilder"

source§

impl Builder for IndexTransactionVecBuilder

§

type Entity = IndexTransactionVec

source§

const NAME: &'static str = "IndexTransactionVecBuilder"

source§

impl Builder for LightClientMessageBuilder

§

type Entity = LightClientMessage

source§

const NAME: &'static str = "LightClientMessageBuilder"

source§

impl Builder for MerkleProofBuilder

§

type Entity = MerkleProof

source§

const NAME: &'static str = "MerkleProofBuilder"

source§

impl Builder for Node2Builder

§

type Entity = Node2

source§

const NAME: &'static str = "Node2Builder"

source§

impl Builder for Node2VecBuilder

§

type Entity = Node2Vec

source§

const NAME: &'static str = "Node2VecBuilder"

source§

impl Builder for NodeBuilder

§

type Entity = Node

source§

const NAME: &'static str = "NodeBuilder"

source§

impl Builder for NodeVecBuilder

§

type Entity = NodeVec

source§

const NAME: &'static str = "NodeVecBuilder"

source§

impl Builder for Nodes2Builder

§

type Entity = Nodes2

source§

const NAME: &'static str = "Nodes2Builder"

source§

impl Builder for NodesBuilder

§

type Entity = Nodes

source§

const NAME: &'static str = "NodesBuilder"

source§

impl Builder for NumberHashBuilder

§

type Entity = NumberHash

source§

const NAME: &'static str = "NumberHashBuilder"

source§

impl Builder for OutPointBuilder

§

type Entity = OutPoint

source§

const NAME: &'static str = "OutPointBuilder"

source§

impl Builder for OutPointVecBuilder

§

type Entity = OutPointVec

source§

const NAME: &'static str = "OutPointVecBuilder"

source§

impl Builder for PingBuilder

§

type Entity = Ping

source§

const NAME: &'static str = "PingBuilder"

source§

impl Builder for PingMessageBuilder

§

type Entity = PingMessage

source§

const NAME: &'static str = "PingMessageBuilder"

source§

impl Builder for PingPayloadBuilder

§

type Entity = PingPayload

source§

const NAME: &'static str = "PingPayloadBuilder"

source§

impl Builder for PongBuilder

§

type Entity = Pong

source§

const NAME: &'static str = "PongBuilder"

source§

impl Builder for PortOptBuilder

§

type Entity = PortOpt

source§

const NAME: &'static str = "PortOptBuilder"

source§

impl Builder for ProposalShortIdBuilder

§

type Entity = ProposalShortId

source§

const NAME: &'static str = "ProposalShortIdBuilder"

source§

impl Builder for ProposalShortIdVecBuilder

§

type Entity = ProposalShortIdVec

source§

const NAME: &'static str = "ProposalShortIdVecBuilder"

source§

impl Builder for RawAlertBuilder

§

type Entity = RawAlert

source§

const NAME: &'static str = "RawAlertBuilder"

source§

impl Builder for RawHeaderBuilder

§

type Entity = RawHeader

source§

const NAME: &'static str = "RawHeaderBuilder"

source§

impl Builder for RawTransactionBuilder

§

type Entity = RawTransaction

source§

const NAME: &'static str = "RawTransactionBuilder"

source§

impl Builder for RelayMessageBuilder

§

type Entity = RelayMessage

source§

const NAME: &'static str = "RelayMessageBuilder"

source§

impl Builder for RelayTransactionBuilder

§

type Entity = RelayTransaction

source§

const NAME: &'static str = "RelayTransactionBuilder"

source§

impl Builder for RelayTransactionHashesBuilder

§

type Entity = RelayTransactionHashes

source§

const NAME: &'static str = "RelayTransactionHashesBuilder"

source§

impl Builder for RelayTransactionVecBuilder

§

type Entity = RelayTransactionVec

source§

const NAME: &'static str = "RelayTransactionVecBuilder"

source§

impl Builder for RelayTransactionsBuilder

§

type Entity = RelayTransactions

source§

const NAME: &'static str = "RelayTransactionsBuilder"

source§

impl Builder for ScriptBuilder

§

type Entity = Script

source§

const NAME: &'static str = "ScriptBuilder"

source§

impl Builder for ScriptOptBuilder

§

type Entity = ScriptOpt

source§

const NAME: &'static str = "ScriptOptBuilder"

source§

impl Builder for SendBlockBuilder

§

type Entity = SendBlock

source§

const NAME: &'static str = "SendBlockBuilder"

source§

impl Builder for SendBlocksProofBuilder

§

type Entity = SendBlocksProof

source§

const NAME: &'static str = "SendBlocksProofBuilder"

source§

impl Builder for SendHeadersBuilder

§

type Entity = SendHeaders

source§

const NAME: &'static str = "SendHeadersBuilder"

source§

impl Builder for SendLastStateBuilder

§

type Entity = SendLastState

source§

const NAME: &'static str = "SendLastStateBuilder"

source§

impl Builder for SendLastStateProofBuilder

§

type Entity = SendLastStateProof

source§

const NAME: &'static str = "SendLastStateProofBuilder"

source§

impl Builder for SendTransactionsProofBuilder

§

type Entity = SendTransactionsProof

source§

const NAME: &'static str = "SendTransactionsProofBuilder"

source§

impl Builder for SetFilterBuilder

§

type Entity = SetFilter

source§

const NAME: &'static str = "SetFilterBuilder"

source§

impl Builder for SyncMessageBuilder

§

type Entity = SyncMessage

source§

const NAME: &'static str = "SyncMessageBuilder"

source§

impl Builder for TimeBuilder

§

type Entity = Time

source§

const NAME: &'static str = "TimeBuilder"

source§

impl Builder for TransactionBuilder

§

type Entity = Transaction

source§

const NAME: &'static str = "TransactionBuilder"

source§

impl Builder for TransactionInfoBuilder

§

type Entity = TransactionInfo

source§

const NAME: &'static str = "TransactionInfoBuilder"

source§

impl Builder for TransactionKeyBuilder

§

type Entity = TransactionKey

source§

const NAME: &'static str = "TransactionKeyBuilder"

source§

impl Builder for TransactionVecBuilder

§

type Entity = TransactionVec

source§

const NAME: &'static str = "TransactionVecBuilder"

source§

impl Builder for TransactionViewBuilder

§

type Entity = TransactionView

source§

const NAME: &'static str = "TransactionViewBuilder"

source§

impl Builder for Uint16Builder

§

type Entity = Uint16

source§

const NAME: &'static str = "Uint16Builder"

source§

impl Builder for Uint32Builder

§

type Entity = Uint32

source§

const NAME: &'static str = "Uint32Builder"

source§

impl Builder for Uint32VecBuilder

§

type Entity = Uint32Vec

source§

const NAME: &'static str = "Uint32VecBuilder"

source§

impl Builder for Uint64Builder

§

type Entity = Uint64

source§

const NAME: &'static str = "Uint64Builder"

source§

impl Builder for Uint64VecBuilder

§

type Entity = Uint64Vec

source§

const NAME: &'static str = "Uint64VecBuilder"

source§

impl Builder for Uint64VecOptBuilder

§

type Entity = Uint64VecOpt

source§

const NAME: &'static str = "Uint64VecOptBuilder"

source§

impl Builder for Uint128Builder

§

type Entity = Uint128

source§

const NAME: &'static str = "Uint128Builder"

source§

impl Builder for Uint256Builder

§

type Entity = Uint256

source§

const NAME: &'static str = "Uint256Builder"

source§

impl Builder for Uint256VecBuilder

§

type Entity = Uint256Vec

source§

const NAME: &'static str = "Uint256VecBuilder"

source§

impl Builder for UncleBlockBuilder

§

type Entity = UncleBlock

source§

const NAME: &'static str = "UncleBlockBuilder"

source§

impl Builder for UncleBlockVecBuilder

§

type Entity = UncleBlockVec

source§

const NAME: &'static str = "UncleBlockVecBuilder"

source§

impl Builder for UncleBlockVecViewBuilder

§

type Entity = UncleBlockVecView

source§

const NAME: &'static str = "UncleBlockVecViewBuilder"

source§

impl Builder for VerifiableHeaderBuilder

§

type Entity = VerifiableHeader

source§

const NAME: &'static str = "VerifiableHeaderBuilder"

source§

impl Builder for VerifiableHeaderVecBuilder

§

type Entity = VerifiableHeaderVec

source§

const NAME: &'static str = "VerifiableHeaderVecBuilder"

source§

impl Builder for WitnessArgsBuilder

§

type Entity = WitnessArgs

source§

const NAME: &'static str = "WitnessArgsBuilder"