<img width="1318" alt="image" src="https://github.com/user-attachments/assets/4a8e7b93-a7e7-4648-b8da-c5a6e7ede4f9" /> <img width="1318" alt="image" src="https://github.com/user-attachments/assets/bfc35845-719f-4c97-bf50-087feb0f6775" />
22 lines
651 B
Rust
22 lines
651 B
Rust
use serde::{Deserialize, Serialize};
|
|
use std::collections::HashMap;
|
|
use std::time::Duration;
|
|
use tokio::time;
|
|
|
|
// Version number of the HelloWorld struct
|
|
const VERSION: &str = "1.0.0";
|
|
|
|
/// HelloWorld struct provides greeting functionality with configuration options
|
|
///
|
|
/// # Features
|
|
/// - Async greetings with customizable names
|
|
/// - Configuration management via HashMap
|
|
/// - Report generation
|
|
/// - Error handling with custom error types
|
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
|
pub struct HelloWorld {
|
|
name: String,
|
|
#[serde(skip)]
|
|
options: HashMap<String, serde_json::Value>,
|
|
created_at: chrono::DateTime<chrono::Utc>,
|
|
}
|