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§
source§impl TransactionPayload
impl TransactionPayload
pub fn script_strategy() -> impl Strategy<Value = Self>
pub fn module_strategy() -> impl Strategy<Value = Self>
pub fn write_set_strategy() -> impl Strategy<Value = Self>
sourcepub fn genesis_strategy() -> impl Strategy<Value = Self>
pub fn genesis_strategy() -> impl Strategy<Value = Self>
Similar to write_set_strategy
except generates a valid write set for the genesis block.
source§impl TransactionPayload
impl TransactionPayload
pub fn should_trigger_reconfiguration_by_default(&self) -> bool
pub fn into_script_function(self) -> ScriptFunction
Trait Implementations§
source§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
.source§fn arbitrary_with(_args: ()) -> Self::Strategy
fn arbitrary_with(_args: ()) -> Self::Strategy
§type Strategy = BoxedStrategy<TransactionPayload>
type Strategy = BoxedStrategy<TransactionPayload>
The type of
Strategy
used to generate values of type Self
.source§impl Clone for TransactionPayload
impl Clone for TransactionPayload
source§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 moresource§impl Debug for TransactionPayload
impl Debug for TransactionPayload
source§impl<'de> Deserialize<'de> for TransactionPayload
impl<'de> Deserialize<'de> for TransactionPayload
source§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
source§impl Hash for TransactionPayload
impl Hash for TransactionPayload
source§impl PartialEq<TransactionPayload> for TransactionPayload
impl PartialEq<TransactionPayload> for TransactionPayload
source§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 ==
.source§impl Serialize for TransactionPayload
impl Serialize for TransactionPayload
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> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
source§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.