#[non_exhaustive]pub struct LocalizableProperty {
pub name: &'static str,
pub nullable: bool,
}Expand description
One localizable property of a data type: its wire name and whether
its type allows null (draft-atwood-jmap-updates-00 §4.1).
Every localizable property in the draft is a String or a
String|null.
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.name: &'static strWire name, e.g. "name".
nullable: booltrue for a String|null property, whose localized value may be
null (“no value in that language”).
Implementations§
Trait Implementations§
Source§impl Clone for LocalizableProperty
impl Clone for LocalizableProperty
impl Copy for LocalizableProperty
Source§impl Debug for LocalizableProperty
impl Debug for LocalizableProperty
impl Eq for LocalizableProperty
Source§impl PartialEq for LocalizableProperty
impl PartialEq for LocalizableProperty
impl StructuralPartialEq for LocalizableProperty
Auto Trait Implementations§
impl Forget for LocalizableProperty
impl Freeze for LocalizableProperty
impl Move for LocalizableProperty
impl RefUnwindSafe for LocalizableProperty
impl Send for LocalizableProperty
impl Sync for LocalizableProperty
impl Unpin for LocalizableProperty
impl UnsafeUnpin for LocalizableProperty
impl UnwindSafe for LocalizableProperty
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