use wildbird::derive::*; // Convert struct to Service #[derive(Service)] struct HelloService { component_name: String, } // Impl Service trait construct() #[ServiceConstruct] fn hello_init() -> HelloService { HelloService { component_name: "Hello World".to_string(), } }
MIT