1// generated by diplomat-tool 2import type { DisplayNamesFallback } from "./DisplayNamesFallback" 3import type { DisplayNamesStyle } from "./DisplayNamesStyle" 4import type { LanguageDisplay } from "./LanguageDisplay" 5import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; 6 7 8/** See the [Rust documentation for `DisplayNamesOptions`](https://docs.rs/icu/latest/icu/displaynames/options/struct.DisplayNamesOptions.html) for more information. 9*/ 10type DisplayNamesOptions_obj = { 11 style?: DisplayNamesStyle | null; 12 fallback?: DisplayNamesFallback | null; 13 languageDisplay?: LanguageDisplay | null; 14}; 15 16 17 18export class DisplayNamesOptions { 19 20 get style() : DisplayNamesStyle | null; 21 set style(value: DisplayNamesStyle | null); 22 23 get fallback() : DisplayNamesFallback | null; 24 set fallback(value: DisplayNamesFallback | null); 25 26 get languageDisplay() : LanguageDisplay | null; 27 set languageDisplay(value: LanguageDisplay | null); 28 29 /** Create `DisplayNamesOptions` from an object that contains all of `DisplayNamesOptions`s fields. 30 * Optional fields do not need to be included in the provided object. 31 */ 32 static fromFields(structObj : DisplayNamesOptions_obj) : DisplayNamesOptions; 33 34 35 constructor(structObj : DisplayNamesOptions_obj); 36}