Enum hedera::RequestType

source ·
#[non_exhaustive]
pub enum RequestType {
Show 75 variants None, CryptoTransfer, CryptoUpdate, CryptoDelete, CryptoAddLiveHash, CryptoDeleteLiveHash, ContractCall, ContractCreate, ContractUpdate, FileCreate, FileAppend, FileUpdate, FileDelete, CryptoGetAccountBalance, CryptoGetAccountRecords, CryptoGetInfo, ContractCallLocal, ContractGetInfo, ContractGetBytecode, GetBySolidityId, GetByKey, CryptoGetLiveHash, CryptoGetStakers, FileGetContents, FileGetInfo, TransactionGetRecord, ContractGetRecords, CryptoCreate, SystemDelete, SystemUndelete, ContractDelete, Freeze, CreateTransactionRecord, CryptoAccountAutoRenew, ContractAutoRenew, GetVersionInfo, TransactionGetReceipt, ConsensusCreateTopic, ConsensusUpdateTopic, ConsensusDeleteTopic, ConsensusGetTopicInfo, ConsensusSubmitMessage, UncheckedSubmit, TokenCreate, TokenGetInfo, TokenFreezeAccount, TokenUnfreezeAccount, TokenGrantKycToAccount, TokenRevokeKycFromAccount, TokenDelete, TokenUpdate, TokenMint, TokenBurn, TokenAccountWipe, TokenAssociateToAccount, TokenDissociateFromAccount, ScheduleCreate, ScheduleDelete, ScheduleSign, ScheduleGetInfo, TokenGetAccountNftInfos, TokenGetNftInfo, TokenGetNftInfos, TokenFeeScheduleUpdate, NetworkGetExecutionTime, TokenPause, TokenUnpause, CryptoApproveAllowance, CryptoDeleteAllowance, GetAccountDetails, EthereumTransaction, NodeStakeUpdate, UtilPrng, TransactionGetFastRecord, TokenUpdateNfts,
}
Expand description

The functionality provided by Hedera.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

None

UNSPECIFIED - Need to keep first value as unspecified because first element is ignored and not parsed (0 is ignored by parser)

§

CryptoTransfer

Transfer from one account to another.

TransferTransaction.

§

CryptoUpdate

Update an account.

AccountUpdateTransaction.

§

CryptoDelete

Delete an account.

AccountDeleteTransaction.

§

CryptoAddLiveHash

Add a live hash to an account (not currently supported).

§

CryptoDeleteLiveHash

Remove a live hash from an account (not currently supported).

§

ContractCall

Execute a contract.

ContractExecuteTransaction

§

ContractCreate

Create a contract.

ContractCreateTransaction

§

ContractUpdate

Update a contract.

ContractUpdateTransaction

§

FileCreate

Create a file.

§

FileAppend

Append data to a file.

§

FileUpdate

Update a file.

§

FileDelete

Delete a file.

§

CryptoGetAccountBalance

Query the balance for an account.

§

CryptoGetAccountRecords

Query the records for an account.

§

CryptoGetInfo

Query the info for an account.

§

ContractCallLocal

Execute a contract locally on a node.

§

ContractGetInfo

Query the info for a contract.

§

ContractGetBytecode

Query the bytecode for a contract.

§

GetBySolidityId

Lookup a contract by its solidity ID.

§

GetByKey

Lookup a contract by key.

§

CryptoGetLiveHash

Query the live hashes for a account (not currently supported).

§

CryptoGetStakers

Query the stakers for an account.

§

FileGetContents

Query the contents of a file.

§

FileGetInfo

Query the info for a file.

§

TransactionGetRecord

Query the record for a transaction.

§

ContractGetRecords

Query the records for a contract.

§

CryptoCreate

Create an account.

§

SystemDelete

System delete a file or contract.

§

SystemUndelete

System undelete a file or contract.

§

ContractDelete

Delete a contract.

§

Freeze

Freeze the network.

§

CreateTransactionRecord

Creation of a transaction record..

§

CryptoAccountAutoRenew

Auto renewal of an account.

§

ContractAutoRenew

Auto renewal of a contract

§

GetVersionInfo

Query the version info of the network.

§

TransactionGetReceipt

Query the receipt for a transaction.

§

ConsensusCreateTopic

Create a topic.

§

ConsensusUpdateTopic

Update a topic.

§

ConsensusDeleteTopic

Delete a topic.

§

ConsensusGetTopicInfo

Query the info for a topic.

§

ConsensusSubmitMessage

Submit a message to a topic.

§

UncheckedSubmit

Submit a transaction without validation.

§

TokenCreate

Create a topic.

§

TokenGetInfo

Query the info for a token.

§

TokenFreezeAccount

Freeze an account’s balance of a token.

§

TokenUnfreezeAccount

Unfreeze an account’s balance of a token.

§

TokenGrantKycToAccount

Grant KYC to an account for a token.

§

TokenRevokeKycFromAccount

Revoke KYC from an account for a token.

§

TokenDelete

Delete a token.

§

TokenUpdate

Update a token.

§

TokenMint

Mint items on a token.

§

TokenBurn

Burn items from a token.

§

TokenAccountWipe

Wipe an account’s balance of a token.

§

TokenAssociateToAccount

Associate tokens to an account.

§

TokenDissociateFromAccount

Dissociate tokens from an account.

§

ScheduleCreate

Create a schedule.

§

ScheduleDelete

Delete a schedule.

§

ScheduleSign

Sign a schedule.

§

ScheduleGetInfo

Query the info for a schedule.

§

TokenGetAccountNftInfos

Query the info of held NFTs for an account.

§

TokenGetNftInfo

Query the info of an NFT for a token.

§

TokenGetNftInfos

Query the info of NFT for a token.

§

TokenFeeScheduleUpdate

Update the fee schedule for a token.

§

NetworkGetExecutionTime

Query the execution time of a transaction.

§

TokenPause

Pause usage of a token.

§

TokenUnpause

Unpause usage of a token.

§

CryptoApproveAllowance

Approve an account spending another account’s currency.

§

CryptoDeleteAllowance

Unapprove an account spending another account’s currency.

§

GetAccountDetails

Query the details for an account.

§

EthereumTransaction

Execute an ethereum style transaction.

§

NodeStakeUpdate

Update an account/contract’s staked node.

§

UtilPrng

Execute a PRNG transaction.

§

TransactionGetFastRecord

Get a record for a transaction.

§

TokenUpdateNfts

Update the metadata of one or more NFT’s of a specific token type.

Trait Implementations§

source§

impl Clone for RequestType

source§

fn clone(&self) -> RequestType

Returns a copy 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 RequestType

source§

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

Formats the value using the given formatter. Read more
source§

impl PartialEq for RequestType

source§

fn eq(&self, other: &RequestType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for RequestType

source§

impl StructuralPartialEq for RequestType

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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
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> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

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

§

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>,

§

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>,

§

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