1 #ifndef icu4x_DateTimeMismatchedCalendarError_D_HPP 2 #define icu4x_DateTimeMismatchedCalendarError_D_HPP 3 4 #include <stdio.h> 5 #include <stdint.h> 6 #include <stddef.h> 7 #include <stdbool.h> 8 #include <memory> 9 #include <functional> 10 #include <optional> 11 #include "../diplomat_runtime.hpp" 12 #include "AnyCalendarKind.d.hpp" 13 14 namespace icu4x { 15 class AnyCalendarKind; 16 } 17 18 19 namespace icu4x { 20 namespace capi { 21 struct DateTimeMismatchedCalendarError { 22 icu4x::capi::AnyCalendarKind this_kind; 23 icu4x::capi::AnyCalendarKind_option date_kind; 24 }; 25 26 typedef struct DateTimeMismatchedCalendarError_option {union { DateTimeMismatchedCalendarError ok; }; bool is_ok; } DateTimeMismatchedCalendarError_option; 27 } // namespace capi 28 } // namespace 29 30 31 namespace icu4x { 32 struct DateTimeMismatchedCalendarError { 33 icu4x::AnyCalendarKind this_kind; 34 std::optional<icu4x::AnyCalendarKind> date_kind; 35 36 inline icu4x::capi::DateTimeMismatchedCalendarError AsFFI() const; 37 inline static icu4x::DateTimeMismatchedCalendarError FromFFI(icu4x::capi::DateTimeMismatchedCalendarError c_struct); 38 }; 39 40 } // namespace 41 #endif // icu4x_DateTimeMismatchedCalendarError_D_HPP 42