Enum diem_sdk::types::transaction::TransactionPayload
pub enum TransactionPayload {
WriteSet(WriteSetPayload),
Script(Script),
Module(Module),
ScriptFunction(ScriptFunction),
}
Expand description
Different kinds of transactions.
Variants§
WriteSet(WriteSetPayload)
A system maintenance transaction.
Script(Script)
A transaction that executes code.
Module(Module)
A transaction that publishes code.
ScriptFunction(ScriptFunction)
A transaction that executes an existing script function published on-chain.
Implementations§
§impl TransactionPayload
impl TransactionPayload
pub fn script_strategy() -> impl Strategy<Value = TransactionPayload>
pub fn module_strategy() -> impl Strategy<Value = TransactionPayload>
pub fn write_set_strategy() -> impl Strategy<Value = TransactionPayload>
pub fn genesis_strategy() -> impl Strategy<Value = TransactionPayload>
pub fn genesis_strategy() -> impl Strategy<Value = TransactionPayload>
Similar to write_set_strategy
except generates a valid write set for the genesis block.
§impl TransactionPayload
impl TransactionPayload
pub fn should_trigger_reconfiguration_by_default(&self) -> bool
pub fn into_script_function(self) -> ScriptFunction
Trait Implementations§
§impl Arbitrary for TransactionPayload
impl Arbitrary for TransactionPayload
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§fn arbitrary_with(_args: ()) -> <TransactionPayload as Arbitrary>::Strategy
fn arbitrary_with(_args: ()) -> <TransactionPayload as Arbitrary>::Strategy
§type Strategy = BoxedStrategy<TransactionPayload>
type Strategy = BoxedStrategy<TransactionPayload>
The type of
Strategy
used to generate values of type Self
.§impl Clone for TransactionPayload
impl Clone for TransactionPayload
§fn clone(&self) -> TransactionPayload
fn clone(&self) -> TransactionPayload
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for TransactionPayload
impl Debug for TransactionPayload
§impl<'de> Deserialize<'de> for TransactionPayload
impl<'de> Deserialize<'de> for TransactionPayload
§fn deserialize<__D>(
__deserializer: __D
) -> Result<TransactionPayload, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<TransactionPayload, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Hash for TransactionPayload
impl Hash for TransactionPayload
§impl PartialEq<TransactionPayload> for TransactionPayload
impl PartialEq<TransactionPayload> for TransactionPayload
§fn eq(&self, other: &TransactionPayload) -> bool
fn eq(&self, other: &TransactionPayload) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for TransactionPayload
impl Serialize for TransactionPayload
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for TransactionPayload
impl StructuralEq for TransactionPayload
impl StructuralPartialEq for TransactionPayload
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§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.