#[non_exhaustive]pub struct I18nInfo {
pub max_localizations: Option<usize>,
}Expand description
What a backend supports for urn:ietf:params:jmap:i18n in one
account, as JmapAccounts::i18n_info
returns it.
Build one with I18nInfo::new and the with_* setters.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_localizations: Option<usize>The most localizations stored per object, or None for no limit
(§4.1: “A server MAY limit the number of localizations it stores
per object”).
Implementations§
Source§impl I18nInfo
impl I18nInfo
Sourcepub fn with_max_localizations(self, max: Option<usize>) -> Self
pub fn with_max_localizations(self, max: Option<usize>) -> Self
Set max_localizations.
Trait Implementations§
impl Eq for I18nInfo
impl StructuralPartialEq for I18nInfo
Auto Trait Implementations§
impl Forget for I18nInfo
impl Freeze for I18nInfo
impl Move for I18nInfo
impl RefUnwindSafe for I18nInfo
impl Send for I18nInfo
impl Sync for I18nInfo
impl Unpin for I18nInfo
impl UnsafeUnpin for I18nInfo
impl UnwindSafe for I18nInfo
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