Struct diem_types::transaction::RawTransaction[][src]

pub struct RawTransaction { /* fields omitted */ }
Expand description

RawTransaction is the portion of a transaction that a client signs.

Implementations

Create a new RawTransaction with a payload.

It can be either to publish a module, to execute a script, or to issue a writeset transaction.

Create a new RawTransaction with a script.

A script transaction contains only code to execute. No publishing is allowed in scripts.

Create a new RawTransaction with a script function.

A script transaction contains only code to execute. No publishing is allowed in scripts.

Create a new RawTransaction with a module to publish.

A module transaction is the only way to publish code. Only one module per transaction can be published.

Signs the given RawTransaction. Note that this consumes the RawTransaction and turns it into a SignatureCheckedTransaction.

For a transaction that has just been signed, its signature is expected to be valid.

Signs the given multi-agent RawTransaction, which is a transaction with secondary signers in addition to a sender. The private keys of the sender and the secondary signers are used to sign the transaction.

The order and length of the secondary keys provided here have to match the order and length of the secondary_signers.

Return the sender of this transaction.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

The associated Hasher type which comes with a unique salt for this type.

Hashes the object and produces a HashValue.

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

Generates a hash used only for tests.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.