pub struct ContactLabel {
pub is_default: bool,
pub name: String,
pub sort_key: i64,
pub id: i64,
pub name_translated: String,
pub extra: Map<String, Value>,
}Expand description
Shared label for person email addresses. Renaming a label changes its display wherever that label is used.
Fields§
§is_default: boolWhether this label is preferred for new email addresses. Setting true unsets an existing default label.
name: StringUnique contact-label name.
sort_key: i64Display-order value.
id: i64Contact-label ID referenced by a person’s email address.
name_translated: StringTranslated Name of Label
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for ContactLabel
impl Clone for ContactLabel
Source§impl Debug for ContactLabel
impl Debug for ContactLabel
Source§impl Default for ContactLabel
impl Default for ContactLabel
Source§impl<'de> Deserialize<'de> for ContactLabel
impl<'de> Deserialize<'de> for ContactLabel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ContactLabel
impl PartialEq for ContactLabel
Source§impl Serialize for ContactLabel
impl Serialize for ContactLabel
impl StructuralPartialEq for ContactLabel
Auto Trait Implementations§
impl Freeze for ContactLabel
impl RefUnwindSafe for ContactLabel
impl Send for ContactLabel
impl Sync for ContactLabel
impl Unpin for ContactLabel
impl UnsafeUnpin for ContactLabel
impl UnwindSafe for ContactLabel
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