Skip to main content

ExtensionsRef

Derive Macro ExtensionsRef 

#[derive(ExtensionsRef)]
{
    // Attributes available to this derive:
    #[extensions_ref]
}
Expand description

Derive rama_core::extensions::ExtensionsRef by forwarding to one field.

The field is picked by the first rule that matches:

  1. the field marked #[extensions_ref]
  2. the field named inner
  3. the only field of type Extensions
  4. the only field of a single-field struct

Otherwise it is a compile error. Structs only.