pub struct Profile {
pub locales: Option<Vec<LocaleId>>,
pub calendars: Option<Vec<CalendarId>>,
pub time_zones: Option<Vec<TimeZoneId>>,
pub temperature_unit: Option<TemperatureUnit>,
/* private fields */
}
Expand description
A collection of ranked internationalization properties.
There is no implied origin for this information; it might come from a user account, device settings, a synthesis of user settings and app-specific overrides, or anywhere else.
Language-independent properties that are supported by Unicode BCP-47 Locale IDs (e.g.
first-day-of-week, time zone) are denormalized into the locale IDs in locales
.
Fields§
§locales: Option<Vec<LocaleId>>
Ranked list of locales (in descending order of preference). The vector will always
be set, and always contain at least one element. For example,
locales = [ LocaleId(“en-US”) ] is valid, but locales = [], or locales =
calendars: Option<Vec<CalendarId>>
Ranked list of calendars (in descending order of preference).
The first entry is the primary calendar, and will be equal to the calendar indicated
in locales
.
The vector will always be set, and always contain at least one element.
The list allows multiple ranked preferences, and is intended for use
by applications that can display multiple calendar systems.
time_zones: Option<Vec<TimeZoneId>>
Ranked list of time zones (in descending order). The first entry is the primary time zone,
which should be used by default for formatting dates and times; it will be equal to the
calendar indicated in locales
.
The list is intended for use by applications that can display multiple time zones, e.g.
a world clock.
The vector will always be set, and always contain at least one element.
On Fuchsia, the default time zone is always DEFAULT_TIME_ZONE_ID
when
no more specific time zones have been defined or selected.
temperature_unit: Option<TemperatureUnit>
Selected temperature unit. The unit is always reported: if there is no setting in the current environment, the default value of CELSIUS is used.
Trait Implementations§
Source§impl<D: ResourceDialect> Decode<Profile, D> for Profile
impl<D: ResourceDialect> Decode<Profile, D> for Profile
Source§impl TypeMarker for Profile
impl TypeMarker for Profile
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for Profile
impl ValueTypeMarker for Profile
impl Persistable for Profile
impl StructuralPartialEq for Profile
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnwindSafe for Profile
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)