use std::any::Any; pub trait CommandHandler { fn name(&self) -> &str; fn handle(&self, input: &dyn Any) -> Box<dyn Any>;
use std::collections::HashMap; use std::fmt; #[derive(Debug, Clone)] pub struct Document { pub body: String,