pub struct SexUpdate {
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
Replaces the catalog entry’s writable values. name is required; omitted sortKey becomes 0 and omitted salutations become null. The ID comes from the URL.
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 SexUpdate
impl<'de> Deserialize<'de> for SexUpdate
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 SexUpdate
Auto Trait Implementations§
impl Freeze for SexUpdate
impl RefUnwindSafe for SexUpdate
impl Send for SexUpdate
impl Sync for SexUpdate
impl Unpin for SexUpdate
impl UnsafeUnpin for SexUpdate
impl UnwindSafe for SexUpdate
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