pub struct SexCreate {
pub name: String,
pub salutation_formal: Option<Option<String>>,
pub salutation_informal: Option<Option<String>>,
pub sort_key: Option<Option<i64>>,
pub extra: Map<String, Value>,
}Expand description
Writable catalog values for a person’s sex and associated salutations. Text is trimmed; translation keys and literal display text are accepted.
Fields§
§name: StringStored name or translation key. Use nameTranslated for display in the current language.
salutation_formal: Option<Option<String>>Stored salutation text or translation key. Omission, null, empty string and whitespace-only input all become null.
None leaves the field out, Some(None) sends null.
salutation_informal: Option<Option<String>>Stored salutation text or translation key. Omission, null, empty string and whitespace-only input all become null.
None leaves the field out, Some(None) sends null.
sort_key: Option<Option<i64>>Sort order. Omission or null becomes 0.
None leaves the field out, Some(None) sends null.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SexCreate
impl<'de> Deserialize<'de> for SexCreate
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
impl StructuralPartialEq for SexCreate
Auto Trait Implementations§
impl Freeze for SexCreate
impl RefUnwindSafe for SexCreate
impl Send for SexCreate
impl Sync for SexCreate
impl Unpin for SexCreate
impl UnsafeUnpin for SexCreate
impl UnwindSafe for SexCreate
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