Derive Macro Named

Source
#[derive(Named)]
{
    // Attributes available to this derive:
    #[named]
}
Expand description

Derive the [hyperactor::data::Named] trait for a struct with the provided type URI. The name of the type is its fully-qualified Rust path. The name may be overridden by providing a string value for the name attribute.

In addition to deriving [hyperactor::data::Named], this macro will register the type using the [hyperactor::register_type] macro for concrete types. This behavior can be overridden by providing a literal booolean for the register attribute.

This also requires the type to implement [serde::Serialize] and [serde::Deserialize].