pub struct SignalParam {
    pub name: GodotString,
    pub default: Variant,
    pub export_info: ExportInfo,
    pub usage: PropertyUsage,
}
Expand description

Parameter in a signal declaration.

Instead of providing values for each field, check out the param*() methods in SignalBuilder.

Fields

name: GodotString

Parameter name.

default: Variant

Default value, used when no argument is provided.

export_info: ExportInfo

Metadata and UI hints about exporting, e.g. parameter type.

usage: PropertyUsage

In which context the signal parameter is used.

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

Returns the argument unchanged.

Calls U::from(self).

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

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.