#[repr(i16)]pub enum TransactionType {
Show 51 variants
Invalid = -1,
Payment = 0,
EscrowCreate = 1,
EscrowFinish = 2,
AccountSet = 3,
EscrowCancel = 4,
SetRegularKey = 5,
NickNameSet = 6,
OfferCreate = 7,
OfferCancel = 8,
Contract = 9,
TicketCreate = 10,
TicketCancel = 11,
SignerListSet = 12,
PaymentChannelCreate = 13,
PaymentChannelFund = 14,
PaymentChannelClaim = 15,
CheckCreate = 16,
CheckCash = 17,
CheckCancel = 18,
DepositPreauth = 19,
TrustSet = 20,
AccountDelete = 21,
SetHook = 22,
NFTokenMint = 25,
NFTokenBurn = 26,
NFTokenCreateOffer = 27,
NFTokenCancelOffer = 28,
NFTokenAcceptOffer = 29,
Clawback = 30,
AMMCreate = 35,
AMMDeposit = 36,
AMMWithdraw = 37,
AMMVote = 38,
AMMBid = 39,
AMMDelete = 40,
XChainCreateClaimID = 41,
XChainCommit = 42,
XChainClaim = 43,
XChainAccountCreateCommit = 44,
XChainAddClaimAttestation = 45,
XChainAddAccountCreateAttestation = 46,
XChainModifyBridge = 47,
XChainCreateBridge = 48,
DIDSet = 49,
DIDDelete = 50,
OracleSet = 51,
OracleDelete = 52,
EnableAmendment = 100,
SetFee = 101,
UNLModify = 102,
}Expand description
The type of any given XRPL transaction.
This enum maps to the transaction type codes used in the XRPL protocol. Each variant corresponds to a specific transaction type with its associated numeric code.
§Derived Traits
Debug: Useful for development and debuggingClone: Automatically derived with Copy for consistencyCopy: Efficient for this enum (2 bytes due to#[repr(i16)])PartialEq, Eq: Enable transaction type comparisons
The Copy trait is appropriate here because:
- The enum is only 2 bytes, making copies extremely cheap
- Transaction types are frequently checked and compared
- Implicit copying improves ergonomics
Variants§
Invalid = -1
Payment = 0
EscrowCreate = 1
EscrowFinish = 2
AccountSet = 3
EscrowCancel = 4
SetRegularKey = 5
NickNameSet = 6
OfferCreate = 7
OfferCancel = 8
Contract = 9
TicketCreate = 10
TicketCancel = 11
SignerListSet = 12
PaymentChannelCreate = 13
PaymentChannelFund = 14
PaymentChannelClaim = 15
CheckCreate = 16
CheckCash = 17
CheckCancel = 18
DepositPreauth = 19
TrustSet = 20
AccountDelete = 21
SetHook = 22
NFTokenMint = 25
NFTokenBurn = 26
NFTokenCreateOffer = 27
NFTokenCancelOffer = 28
NFTokenAcceptOffer = 29
Clawback = 30
AMMCreate = 35
AMMDeposit = 36
AMMWithdraw = 37
AMMVote = 38
AMMBid = 39
AMMDelete = 40
XChainCreateClaimID = 41
XChainCommit = 42
XChainClaim = 43
XChainAccountCreateCommit = 44
XChainAddClaimAttestation = 45
XChainAddAccountCreateAttestation = 46
XChainModifyBridge = 47
XChainCreateBridge = 48
DIDSet = 49
DIDDelete = 50
OracleSet = 51
OracleDelete = 52
EnableAmendment = 100
SetFee = 101
UNLModify = 102
Trait Implementations§
Source§impl Clone for TransactionType
impl Clone for TransactionType
Source§fn clone(&self) -> TransactionType
fn clone(&self) -> TransactionType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TransactionType
Source§impl Debug for TransactionType
impl Debug for TransactionType
impl Eq for TransactionType
Source§impl FieldDecoder for TransactionType
FieldDecoder for XRPL transaction types: decodes a 2-byte buffer via the existing
(infallible) i16 mapping, failing only if the host wrote a different number of bytes.
impl FieldDecoder for TransactionType
FieldDecoder for XRPL transaction types: decodes a 2-byte buffer via the existing
(infallible) i16 mapping, failing only if the host wrote a different number of bytes.
Source§impl From<TransactionType> for [u8; 2]
impl From<TransactionType> for [u8; 2]
Source§fn from(value: TransactionType) -> Self
fn from(value: TransactionType) -> Self
Converts to this type from the input type.
Source§impl From<i16> for TransactionType
impl From<i16> for TransactionType
impl FromCurrentTx for TransactionType
Source§impl PartialEq for TransactionType
impl PartialEq for TransactionType
impl StructuralPartialEq for TransactionType
Auto Trait Implementations§
impl Freeze for TransactionType
impl RefUnwindSafe for TransactionType
impl Send for TransactionType
impl Sync for TransactionType
impl Unpin for TransactionType
impl UnsafeUnpin for TransactionType
impl UnwindSafe for TransactionType
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more