Struct gio::ActionEntry

source ·
pub struct ActionEntry<O>where
    O: IsA<ActionMap>,
{ /* private fields */ }
Expand description

This struct defines a single action. It is for use with ActionMapExtManual::add_action_entries().

The order of the items in the structure are intended to reflect frequency of use. It is permissible to use an incomplete initialiser in order to leave some of the later values as None. All values after name are optional. Additional optional fields may be added in the future.

See ActionMapExtManual::add_action_entries() for an example.

Implementations

Trait Implementations

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

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.