Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit d6c3e9c

Browse files
authored
Docs transaction_type (#835)
1 parent 47bb93e commit d6c3e9c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/definitions/transaction_type.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/// TransactionType is an enum that represents the type of transaction.
2+
///
3+
/// It is used in the transaction header and in the transaction execution info.
14
#[derive(Debug, PartialEq, Copy, Clone, Eq, Hash)]
25
pub enum TransactionType {
36
Declare,
@@ -9,6 +12,7 @@ pub enum TransactionType {
912
}
1013

1114
impl From<TransactionType> for u64 {
15+
/// Converts a [TransactionType] into a [u64].
1216
fn from(tx_type: TransactionType) -> Self {
1317
match tx_type {
1418
TransactionType::Declare => 0,

0 commit comments

Comments
 (0)