mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 11:42:25 +00:00
23 lines
629 B
Rust
23 lines
629 B
Rust
use rustical_caldav::calendar::methods::report::CalendarQueryRequest;
|
|
|
|
const CALENDAR_QUERY: &str = r#"
|
|
<calendar-query xmlns="urn:ietf:params:xml:ns:caldav" xmlns:D="DAV:">
|
|
<D:prop>
|
|
<D:getetag />
|
|
</D:prop>
|
|
<filter>
|
|
<comp-filter name="VCALENDAR">
|
|
<comp-filter name="VEVENT">
|
|
<time-range start="20240423T105630Z" end="20240702T105630Z" />
|
|
</comp-filter>
|
|
</comp-filter>
|
|
</filter>
|
|
</calendar-query>
|
|
"#;
|
|
|
|
#[test]
|
|
fn test_parse_calendar_query() {
|
|
let query: CalendarQueryRequest = quick_xml::de::from_str(CALENDAR_QUERY).unwrap();
|
|
dbg!(query);
|
|
}
|