The type of content this event carries
Returns the content of the event.
Returns the unique identifier (ARID) of the event.
Returns the note attached to the event, or an empty string if none exists.
The date attached to the event as a JavaScript Date (millisecond
precision), if any; cborDate is the exact value.
The date attached to the event, if any: the stored CborDate, exact as decoded or given.
StaticfromCreates a new event with the specified content and ID.
Returns a human-readable summary of the event.
Converts the event to an envelope.
The envelope's subject is the event's ID tagged with TAG_EVENT, and assertions include the event's content, note (if not empty), and date (if present).
StaticfromReads an event from an envelope (the reference's
Event::try_from(envelope)): the 'content' object through
contentExtractor, the subject as TAG_EVENT(ARID), the 'note' and
'date' objects by subject extraction.
The type to extract the content as
Returns a string representation of the event.
An Event represents a notification or message that doesn't expect a response.
Example