hub_method

Attribute Macro hub_method 

Source
#[hub_method]
Expand description

Attribute macro for hub methods within an impl block.

This is used inside a #[hub_methods] impl block to mark individual methods. When used standalone, it generates a schema function.

§Example

#[hub_methods(namespace = "bash")]
impl Bash {
    /// Execute a bash command
    #[hub_method]
    async fn execute(&self, command: String) -> impl Stream<Item = BashEvent> {
        // ...
    }
}