Enum diem_types::transaction::TransactionPayload [−][src]
pub enum TransactionPayload {
WriteSet(WriteSetPayload),
Script(Script),
ModuleBundle(ModuleBundle),
ScriptFunction(ScriptFunction),
}Expand description
Different kinds of transactions.
Variants
WriteSet(WriteSetPayload)A system maintenance transaction.
Tuple Fields of WriteSet
Script(Script)A transaction that executes code.
Tuple Fields of Script
0: ScriptModuleBundle(ModuleBundle)A transaction that publishes multiple modules at the same time.
Tuple Fields of ModuleBundle
0: ModuleBundleScriptFunction(ScriptFunction)A transaction that executes an existing script function published on-chain.
Tuple Fields of ScriptFunction
Implementations
Similar to write_set_strategy except generates a valid write set for the genesis block.
Trait Implementations
type Parameters = ()
type Parameters = ()
The type of parameters that arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default. Read more
type Strategy = BoxedStrategy<Self>
type Strategy = BoxedStrategy<Self>
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for TransactionPayload
impl Send for TransactionPayload
impl Sync for TransactionPayload
impl Unpin for TransactionPayload
impl UnwindSafe for TransactionPayload
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
type Output = T
type Output = T
Should always be Self
Generates a hash used only for tests.