Struct gekko_metadata::ExtrinsicInfo[][src]

pub struct ExtrinsicInfo<'a> {
    pub module_id: usize,
    pub dispatch_id: usize,
    pub module_name: &'a str,
    pub extrinsic_name: &'a str,
    pub args: Vec<(&'a str, &'a str)>,
    pub documentation: Vec<&'a str>,
}
Expand description

Parameters and other information about an individual extrinsic.

Fields

module_id: usize

The module Id. This is required when encoding the final extrinsic.

dispatch_id: usize

The dispatch Id. This is required when encoding the final extrinsic.

module_name: &'a str

The name of the module.

extrinsic_name: &'a str

The name of the extrinsic.

args: Vec<(&'a str, &'a str)>

Arguments that must be passed as the extrinsics body. A sequence of key-value pairs, indicating the name and the type, respectively.

documentation: Vec<&'a str>

Documentation of the extrinsic, as provided by the Substrate metadata.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. 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

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.

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.