Expand description
§Meeting Cost Tracker
A library for tracking the cost of meetings in real-time, based on attendee salaries.
Designed for integration with TUI frontends using ratatui.
§Example
use meeting_cost_tracker::{EmployeeCategory, Meeting};
let category = EmployeeCategory::new("Engineer", 120_000).unwrap();
let mut meeting = Meeting::new();
meeting.add_attendee(&category, 3);
meeting.start();
std::thread::sleep(std::time::Duration::from_millis(500));
meeting.stop();
println!("Cost: ${:.2}", meeting.total_cost());Structs§
- Attendee
Info - Persistence helpers for reading and writing categories as TOML. Represents a saved attendee entry of a specific title and count.
- Employee
Category - Represents an employee salary category. Represents an employee category (e.g., Engineer, Manager) with a yearly salary.
- Meeting
- Core meeting functionality including timers and cost computation.
Functions§
- load_
attendees - Persistence helpers for reading and writing categories as TOML. Loads meeting attendees from a TOML file.
- load_
categories - Persistence helpers for reading and writing categories as TOML. Loads employee categories from a TOML file.
- save_
attendees - Persistence helpers for reading and writing categories as TOML. Persists meeting attendees to a TOML file, overwriting any existing file.
- save_
categories - Persistence helpers for reading and writing categories as TOML. Persists employee categories to a TOML file, overwriting any existing content.