command

Attribute Macro command 

Source
#[command]
Expand description

Used to define a command

use std::sync::Arc;
use tokio::sync::Mutex;

#[command(help = "Description")]
async fn hello_world(mut tx: mrsbfh::Sender, config: Arc<Mutex<Config>>, sender: String, mut args: Vec<&str>) -> Result<(), Box<dyn std::error::Error>> where Config: mrsbfh::config::Loader + Clone {}