Skip to main content

TxType

Enum TxType 

Source
#[repr(u8)]
pub enum TxType {
Show 23 variants Transfer = 0, Nft = 1, Token = 2, ContractDeploy = 3, ContractCall = 4, Staking = 5, Messaging = 6, DocClass = 7, Tax = 8, Equity = 9, Agreement = 10, Legal = 11, Property = 12, Healthcare = 13, Employment = 14, Finance = 15, PolicyAccount = 16, NodeRegistry = 17, StorageMetadata = 18, NodeRegistryV2 = 19, StorageMetadataV2 = 20, InferenceAttestation = 21, Education = 22,
}
Expand description

Transaction type identifier

Variants§

§

Transfer = 0

Native token transfer

§

Nft = 1

NFT operation (SUM-721)

§

Token = 2

Token operation (SRC-20)

§

ContractDeploy = 3

Smart contract deployment

§

ContractCall = 4

Smart contract call

§

Staking = 5

Staking operation

§

Messaging = 6

Messaging operation (SRC-201)

§

DocClass = 7

DocClass operation (SRC-80X/81X)

§

Tax = 8

Tax & Compliance operation (SRC-82X)

§

Equity = 9

Business, Governance & Equity operation (SRC-83X)

§

Agreement = 10

Agreement & IP operation (SRC-84X)

§

Legal = 11

Legal Process operation (SRC-85X)

§

Property = 12

Property & Insurance operation (SRC-86X)

§

Healthcare = 13

Healthcare & Membership operation (SRC-87X)

§

Employment = 14

Employment & HR operation (SRC-88X)

§

Finance = 15

Finance & Banking operation (SRC-89X)

§

PolicyAccount = 16

Policy Account operation (Group governance)

§

NodeRegistry = 17

Node Registry operation (register/manage network nodes)

§

StorageMetadata = 18

Storage Metadata operation (file registration, ACL, fee pool)

§

NodeRegistryV2 = 19

V2 Node Registry operation (e.g. encryption-key registration — SNIP V2 Ask 3)

§

StorageMetadataV2 = 20

V2 Storage Metadata operation (Pending lifecycle, bundle storage, abandonment — SNIP V2 Phase 1)

§

InferenceAttestation = 21

OmniNode inference attestation (Stage 6 handoff) — variant index frozen at 21, append-only; see crates/primitives/src/inference_attestation.rs for wire shape.

§

Education = 22

SRC-817/818 Education-LMS suite — variant index frozen at 22, append-only; see crates/primitives/src/education.rs for wire shape.

Implementations§

Source§

impl TxType

Source

pub fn from_byte(b: u8) -> Option<Self>

Convert from byte

Trait Implementations§

Source§

impl Clone for TxType

Source§

fn clone(&self) -> TxType

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for TxType

Source§

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

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

impl<'de> Deserialize<'de> for TxType

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for TxType

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for TxType

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for TxType

Source§

impl Eq for TxType

Source§

impl StructuralPartialEq for TxType

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, 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> 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<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,