Attribute Macro func_description

Source
#[func_description]
Expand description

This procedural macro attribute is used to specify a description for an enum variant.

The func_description attribute does not modify the input it is given. It’s only used to attach metadata (i.e., a description) to enum variants.

§Usage

enum MyEnum {
    #[func_description(description="This function does a thing.")]
    DoAThing,
    #[func_description(description="This function does another thing.")]
    DoAnotherThing,
}

Note: The actual usage of the description provided through this attribute happens in the FunctionCallResponse derive macro and is retrieved in the impl_function_call_response function.