Enum diem_types::transaction::WriteSetPayload [−][src]
pub enum WriteSetPayload {
Direct(ChangeSet),
Script {
execute_as: AccountAddress,
script: Script,
},
}
Expand description
Two different kinds of WriteSet transactions.
Variants
Direct(ChangeSet)
Directly passing in the WriteSet.
Tuple Fields of Direct
0: ChangeSet
Generate the WriteSet by running a script.
Fields of Script
execute_as: AccountAddress
Execute the script as the designated signer.
script: Script
Script body that gets executed.
Implementations
Trait Implementations
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 WriteSetPayload
impl Send for WriteSetPayload
impl Sync for WriteSetPayload
impl Unpin for WriteSetPayload
impl UnwindSafe for WriteSetPayload
Blanket Implementations
Mutably borrows from an owned value. Read more
Generates a hash used only for tests.