pub struct PbLocalizationPreferences {
pub language: Option<PbLanguageId>,
pub unit_system: Option<i32>,
pub time_format: Option<i32>,
pub time_format_separator: Option<i32>,
pub date_format: Option<i32>,
pub date_format_separator: Option<i32>,
pub firstday_of_week: Option<i32>,
}Fields§
§language: Option<PbLanguageId>§unit_system: Option<i32>§time_format: Option<i32>§time_format_separator: Option<i32>§date_format: Option<i32>§date_format_separator: Option<i32>§firstday_of_week: Option<i32>Implementations§
Source§impl PbLocalizationPreferences
impl PbLocalizationPreferences
pub fn unit_system(&self) -> PbUnitSystem
pub fn set_unit_system(&mut self, value: PbUnitSystem)
pub fn time_format(&self) -> PbTimeFormat
pub fn set_time_format(&mut self, value: PbTimeFormat)
pub fn time_format_separator(&self) -> PbTimeFormatSeparator
pub fn set_time_format_separator(&mut self, value: PbTimeFormatSeparator)
pub fn date_format(&self) -> PbDateFormat
pub fn set_date_format(&mut self, value: PbDateFormat)
pub fn date_format_separator(&self) -> PbDateFormatSeparator
pub fn set_date_format_separator(&mut self, value: PbDateFormatSeparator)
pub fn firstday_of_week(&self) -> PbStartDayOfWeek
pub fn set_firstday_of_week(&mut self, value: PbStartDayOfWeek)
Trait Implementations§
Source§impl Clone for PbLocalizationPreferences
impl Clone for PbLocalizationPreferences
Source§fn clone(&self) -> PbLocalizationPreferences
fn clone(&self) -> PbLocalizationPreferences
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PbLocalizationPreferences
impl Debug for PbLocalizationPreferences
Source§impl Default for PbLocalizationPreferences
impl Default for PbLocalizationPreferences
Source§fn default() -> PbLocalizationPreferences
fn default() -> PbLocalizationPreferences
Returns the “default value” for a type. Read more
Source§impl Message for PbLocalizationPreferences
impl Message for PbLocalizationPreferences
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl StructuralPartialEq for PbLocalizationPreferences
Auto Trait Implementations§
impl Freeze for PbLocalizationPreferences
impl RefUnwindSafe for PbLocalizationPreferences
impl Send for PbLocalizationPreferences
impl Sync for PbLocalizationPreferences
impl Unpin for PbLocalizationPreferences
impl UnwindSafe for PbLocalizationPreferences
Blanket Implementations§
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
Mutably borrows from an owned value. Read more