Struct fuel_tx::Checked

source ·
pub struct Checked<Tx: IntoChecked> { /* private fields */ }
Expand description

The type describes that the inner transaction was already checked.

All fields are private, and there is no constructor, so it is impossible to create the instance of Checked outside the fuel-tx crate.

The inner data is immutable to prevent modification to invalidate the checking.

If you need to modify an inner state, you need to get inner values (via the Into<(Tx, Tx ::Metadata)> trait), modify them and check again.

Dev note: Avoid serde serialization of this type. Since checked tx would need to be

re-validated on deserialization anyways, it’s cleaner to redo the tx check.

Implementations

Returns reference on inner transaction.

Returns the metadata generated during the check for transaction.

Returns the bitmask of all passed checks.

Performs check of signatures, if not yet.

Trait Implementations

Converts this type into a shared reference of the (usually inferred) input type.
Immutably borrows from an owned value. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
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 !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Calculate the base32 serialized length
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Error type if conversion fails
Check if all values are in range and return array-like struct of u5 values

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
Encode as base32 and write it to the supplied writer Implementations shouldn’t allocate. Read more
Convert Self to base32 vector
Encode the hex strict representing self into the result. Lower case letters are used (e.g. f9b4ca) Read more
Encode the hex strict representing self into the result. Upper case letters are used (e.g. F9B4CA) Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.