Crate meeting_cost_tracker

Crate meeting_cost_tracker 

Source
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§

AttendeeInfo
Persistence helpers for reading and writing categories as TOML. Represents a saved attendee entry of a specific title and count.
EmployeeCategory
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.