ProviderResponseData

Enum ProviderResponseData 

Source
pub enum ProviderResponseData {
Show 37 variants SpecVersion(String), GetBlockWithTxHashes(MaybePreConfirmedBlockWithTxHashes), GetBlockWithTxs(MaybePreConfirmedBlockWithTxs), GetBlockWithReceipts(MaybePreConfirmedBlockWithReceipts), GetStateUpdate(MaybePreConfirmedStateUpdate), GetStorageAt(Felt), GetMessagesStatus(Vec<MessageStatus>), GetTransactionStatus(TransactionStatus), GetTransactionByHash(Transaction), GetTransactionByBlockIdAndIndex(Transaction), GetTransactionReceipt(TransactionReceiptWithBlockInfo), GetClass(ContractClass), GetClassHashAt(Felt), GetClassAt(ContractClass), GetBlockTransactionCount(u64), Call(Vec<Felt>), EstimateFee(Vec<FeeEstimate>), EstimateMessageFee(FeeEstimate), BlockNumber(u64), BlockHashAndNumber(BlockHashAndNumber), ChainId(Felt), Syncing(SyncStatusType), GetEvents(EventsPage), GetNonce(Felt), GetStorageProof(StorageProof), AddInvokeTransaction(InvokeTransactionResult), AddDeclareTransaction(DeclareTransactionResult), AddDeployAccountTransaction(DeployAccountTransactionResult), TraceTransaction(TransactionTrace), SimulateTransactions(Vec<SimulatedTransaction>), TraceBlockTransactions(Vec<TransactionTraceWithHash>), SubscribeNewHeads(SubscriptionId), SubscribeEvents(SubscriptionId), SubscribeTransactionStatus(SubscriptionId), SubscribeNewTransactionReceipts(SubscriptionId), SubscribeNewTransactions(SubscriptionId), Unsubscribe(bool),
}
Expand description

Typed response data for Provider responses.

Variants§

§

SpecVersion(String)

Response data for starknet_specVersion.

§

GetBlockWithTxHashes(MaybePreConfirmedBlockWithTxHashes)

Response data for starknet_getBlockWithTxHashes.

§

GetBlockWithTxs(MaybePreConfirmedBlockWithTxs)

Response data for starknet_getBlockWithTxs.

§

GetBlockWithReceipts(MaybePreConfirmedBlockWithReceipts)

Response data for starknet_getBlockWithReceipts.

§

GetStateUpdate(MaybePreConfirmedStateUpdate)

Response data for starknet_getStateUpdate.

§

GetStorageAt(Felt)

Response data for starknet_getStorageAt.

§

GetMessagesStatus(Vec<MessageStatus>)

Response data for starknet_getMessagesStatus.

§

GetTransactionStatus(TransactionStatus)

Response data for starknet_getTransactionStatus.

§

GetTransactionByHash(Transaction)

Response data for starknet_getTransactionByHash.

§

GetTransactionByBlockIdAndIndex(Transaction)

Response data for starknet_getTransactionByBlockIdAndIndex.

§

GetTransactionReceipt(TransactionReceiptWithBlockInfo)

Response data for starknet_getTransactionReceipt.

§

GetClass(ContractClass)

Response data for starknet_getClass.

§

GetClassHashAt(Felt)

Response data for starknet_getClassHashAt.

§

GetClassAt(ContractClass)

Response data for starknet_getClassAt.

§

GetBlockTransactionCount(u64)

Response data for starknet_getBlockTransactionCount.

§

Call(Vec<Felt>)

Response data for starknet_call.

§

EstimateFee(Vec<FeeEstimate>)

Response data for starknet_estimateFee.

§

EstimateMessageFee(FeeEstimate)

Response data for starknet_estimateMessageFee.

§

BlockNumber(u64)

Response data for starknet_blockNumber.

§

BlockHashAndNumber(BlockHashAndNumber)

Response data for starknet_blockHashAndNumber.

§

ChainId(Felt)

Response data for starknet_chainId.

§

Syncing(SyncStatusType)

Response data for starknet_syncing.

§

GetEvents(EventsPage)

Response data for starknet_getEvents.

§

GetNonce(Felt)

Response data for starknet_getNonce.

§

GetStorageProof(StorageProof)

Response data for starknet_getStorageProof.

§

AddInvokeTransaction(InvokeTransactionResult)

Response data for starknet_addInvokeTransaction.

§

AddDeclareTransaction(DeclareTransactionResult)

Response data for starknet_addDeclareTransaction.

§

AddDeployAccountTransaction(DeployAccountTransactionResult)

Response data for starknet_addDeployAccountTransaction.

§

TraceTransaction(TransactionTrace)

Response data for starknet_traceTransaction.

§

SimulateTransactions(Vec<SimulatedTransaction>)

Response data for starknet_simulateTransactions.

§

TraceBlockTransactions(Vec<TransactionTraceWithHash>)

Response data for starknet_traceBlockTransactions.

§

SubscribeNewHeads(SubscriptionId)

Response data for starknet_subscribeNewHeads.

§

SubscribeEvents(SubscriptionId)

Response data for starknet_subscribeEvents.

§

SubscribeTransactionStatus(SubscriptionId)

Response data for starknet_subscribeTransactionStatus.

§

SubscribeNewTransactionReceipts(SubscriptionId)

Response data for starknet_subscribeNewTransactionReceipts.

§

SubscribeNewTransactions(SubscriptionId)

Response data for starknet_subscribeNewTransactions.

§

Unsubscribe(bool)

Response data for starknet_unsubscribe.

Trait Implementations§

Source§

impl Clone for ProviderResponseData

Source§

fn clone(&self) -> ProviderResponseData

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ProviderResponseData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,