use rrule::{RRuleSet}; use chrono::{DateTime, Utc}; fn main() { let rrule_str = "FREQ=WEEKLY;BYDAY=MO,WE,FR;COUNT=10"; println!("Testing RRULE: {}", rrule_str); // Test different approaches match RRuleSet::from_str(rrule_str) { Ok(rrule_set) => { println!("Successfully parsed RRULE"); // Check available methods let start = Utc::now(); let end = start + chrono::Duration::days(30); // Try the between method match rrule_set.between(start, end, true) { Ok(occurrences) => { println!("Found {} occurrences", occurrences.len()); } Err(e) => { println!("Error calling between: {}", e); } } } Err(e) => { println!("Error parsing RRULE: {}", e); } } }