// This file is part of ICU4X. For terms of use, please see the file // called LICENSE at the top level of the ICU4X source tree // (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ). #[diplomat::bridge] #[diplomat::abi_rename = "icu4x_{0}_mv1"] #[diplomat::attr(auto, namespace = "icu4x")] pub mod ffi { use alloc::boxed::Box; use icu_calendar::Iso; use crate::calendar::ffi::Calendar; use crate::date::ffi::{Date, IsoDate}; use crate::errors::ffi::CalendarParseError; use crate::time::ffi::Time; /// An ICU4X DateTime object capable of containing a ISO-8601 date and time. #[diplomat::rust_link(icu::time::DateTime, Struct)] #[diplomat::out] pub struct IsoDateTime { pub date: Box, pub time: Box