#[non_exhaustive]pub struct Anniversary {
pub at_type: Option<String>,
pub kind: String,
pub date: AnniversaryDate,
pub place: Option<Address>,
pub extra: Map<String, Value>,
}Expand description
A memorable date or event (RFC 9553 §2.8.1).
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 "Anniversary" when present per RFC 9553 §1.3.4 (may be omitted in defaultType positions).
kind: String"birth", "death", or "wedding".
date: AnniversaryDateThe date of the anniversary — either a PartialDate or a
Timestamp.
place: Option<Address>An associated address (e.g. place of birth or death).
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 Clone for Anniversary
impl Clone for Anniversary
Source§fn clone(&self) -> Anniversary
fn clone(&self) -> Anniversary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Anniversary
impl Debug for Anniversary
Source§impl<'de> Deserialize<'de> for Anniversary
impl<'de> Deserialize<'de> for Anniversary
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Anniversary, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Anniversary, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Anniversary
Source§impl PartialEq for Anniversary
impl PartialEq for Anniversary
Source§impl Serialize for Anniversary
impl Serialize for Anniversary
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 Anniversary
Auto Trait Implementations§
impl Freeze for Anniversary
impl RefUnwindSafe for Anniversary
impl Send for Anniversary
impl Sync for Anniversary
impl Unpin for Anniversary
impl UnsafeUnpin for Anniversary
impl UnwindSafe for Anniversary
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