#[derive(ProcedureCall)]
{
// Attributes available to this derive:
#[procedure]
}
Expand description
Derives the ProcedureCall trait for a type.
This macro implements the ProcedureCall trait for a type, allowing it to be used
in remote procedure calls. It provides serialization and deserialization capabilities
for the type.
§Attributes
#[procedure(path = "custom_path")]- Specifies a custom path for the procedure. If not provided, the path will be generated from the module path and type name.
§Requires
- The type must implement the
SerializeandDeserializetraits from theserdecrate.
§Examples
#[derive(ProcedureCall)]
struct MyProcedure {
field: String,
}