#[non_exhaustive]pub struct Pronouns {
pub at_type: Option<String>,
pub pronouns: String,
pub contexts: Option<HashMap<String, bool>>,
pub pref: Option<u32>,
pub extra: Map<String, Value>,
}Expand description
A pronouns entry (RFC 9553 §2.2.4).
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.at_type: Option<String>Object type discriminator; SHOULD be "Pronouns" when present per RFC 9553 §1.3.4 (may be omitted in defaultType positions).
pronouns: StringThe pronouns (free-form, e.g. "she/her", "they/them/theirs").
contexts: Option<HashMap<String, bool>>Contexts in which to use these pronouns (key → true).
pref: Option<u32>Preference order in 1..=100 (lower = more preferred).
extra: Map<String, Value>Catch-all for vendor / site / private extension fields not covered by the typed fields above. Preserves unknown fields across deserialize/serialize round-trip per workspace extras-preservation policy (see workspace AGENTS.md).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pronouns
impl<'de> Deserialize<'de> for Pronouns
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Pronouns, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Pronouns, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Pronouns
Source§impl Serialize for Pronouns
impl Serialize for Pronouns
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Pronouns
Auto Trait Implementations§
impl Freeze for Pronouns
impl RefUnwindSafe for Pronouns
impl Send for Pronouns
impl Sync for Pronouns
impl Unpin for Pronouns
impl UnsafeUnpin for Pronouns
impl UnwindSafe for Pronouns
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