[]Trait uckb_jsonrpc_core::types::prelude::Entity

pub trait Entity: Clone + Default + Debug {
    type Builder: Builder;

    const NAME: &'static str;

    fn new_unchecked(data: Bytes) -> Self;
fn as_bytes(&self) -> Bytes;
fn as_slice(&self) -> &[u8];
fn from_slice(slice: &[u8]) -> Result<Self, VerificationError>;
fn from_compatible_slice(slice: &[u8]) -> Result<Self, VerificationError>;
fn new_builder() -> Self::Builder;
fn as_builder(self) -> Self::Builder; }

Associated Types

Loading content...

Associated Constants

const NAME: &'static str

Loading content...

Required methods

fn new_unchecked(data: Bytes) -> Self

fn as_bytes(&self) -> Bytes

fn as_slice(&self) -> &[u8]

fn from_slice(slice: &[u8]) -> Result<Self, VerificationError>

fn from_compatible_slice(slice: &[u8]) -> Result<Self, VerificationError>

fn new_builder() -> Self::Builder

fn as_builder(self) -> Self::Builder

Loading content...

Implementors

impl Entity for AddFilter[src]

impl Entity for Address[src]

impl Entity for AddressVec[src]

impl Entity for Alert[src]

impl Entity for BeUint32[src]

impl Entity for BeUint64[src]

impl Entity for Block[src]

impl Entity for BlockExt[src]

impl Entity for BlockProposal[src]

impl Entity for BlockTransactions[src]

impl Entity for Bool[src]

type Builder = BoolBuilder

impl Entity for BoolOpt[src]

impl Entity for Byte32[src]

impl Entity for Byte32Opt[src]

impl Entity for Byte32Vec[src]

impl Entity for Bytes[src]

impl Entity for BytesOpt[src]

impl Entity for BytesVec[src]

impl Entity for CellDataEntry[src]

impl Entity for CellDep[src]

impl Entity for CellDepVec[src]

impl Entity for CellEntry[src]

impl Entity for CellInput[src]

impl Entity for CellInputVec[src]

impl Entity for CellOutput[src]

impl Entity for CellOutputOpt[src]

impl Entity for CellOutputVec[src]

impl Entity for CellbaseWitness[src]

impl Entity for ClearFilter[src]

impl Entity for CompactBlock[src]

impl Entity for DiscoveryBool[src]

impl Entity for DiscoveryMessage[src]

impl Entity for DiscoveryPayload[src]

impl Entity for EpochExt[src]

impl Entity for FilteredBlock[src]

impl Entity for GetBlockProposal[src]

impl Entity for GetBlockTransactions[src]

impl Entity for GetBlocks[src]

impl Entity for GetHeaders[src]

impl Entity for GetNodes[src]

impl Entity for GetRelayTransactions[src]

impl Entity for Header[src]

impl Entity for HeaderVec[src]

impl Entity for HeaderView[src]

impl Entity for Identify[src]

impl Entity for IdentifyMessage[src]

impl Entity for InIBD[src]

impl Entity for IndexTransaction[src]

impl Entity for IndexTransactionVec[src]

impl Entity for LiveCellOutput[src]

impl Entity for LockHashCellOutput[src]

impl Entity for LockHashIndex[src]

impl Entity for LockHashIndexState[src]

impl Entity for MerkleProof[src]

impl Entity for Node[src]

type Builder = NodeBuilder

impl Entity for NodeVec[src]

impl Entity for Nodes[src]

impl Entity for OutPoint[src]

impl Entity for OutPointVec[src]

impl Entity for Ping[src]

type Builder = PingBuilder

impl Entity for PingMessage[src]

impl Entity for PingPayload[src]

impl Entity for Pong[src]

type Builder = PongBuilder

impl Entity for PortOpt[src]

impl Entity for ProposalShortId[src]

impl Entity for ProposalShortIdVec[src]

impl Entity for RawAlert[src]

impl Entity for RawHeader[src]

impl Entity for RawTransaction[src]

impl Entity for RelayMessage[src]

impl Entity for RelayTransaction[src]

impl Entity for RelayTransactionHashes[src]

impl Entity for RelayTransactionVec[src]

impl Entity for RelayTransactions[src]

impl Entity for Script[src]

impl Entity for ScriptOpt[src]

impl Entity for SendBlock[src]

impl Entity for SendHeaders[src]

impl Entity for SetFilter[src]

impl Entity for SyncMessage[src]

impl Entity for Time[src]

type Builder = TimeBuilder

impl Entity for Transaction[src]

impl Entity for TransactionInfo[src]

impl Entity for TransactionKey[src]

impl Entity for TransactionPoint[src]

impl Entity for TransactionPointOpt[src]

impl Entity for TransactionVec[src]

impl Entity for TransactionView[src]

impl Entity for Uint16[src]

impl Entity for Uint32[src]

impl Entity for Uint32Vec[src]

impl Entity for Uint64[src]

impl Entity for Uint64Vec[src]

impl Entity for Uint128[src]

impl Entity for Uint256[src]

impl Entity for UncleBlock[src]

impl Entity for UncleBlockVec[src]

impl Entity for UncleBlockVecView[src]

impl Entity for WitnessArgs[src]

Loading content...