HistoryItem

struct HistoryItem
extension HistoryItem : Equatable, Hashable, Identifiable, Sendable

A single history item.

  • id

    The stable identity of the entity associated with this instance.

    Declaration

    Swift

    let id: String
  • Undocumented

    Declaration

    Swift

    let timestamp: Date
  • Undocumented

    Declaration

    Swift

    let source: HistoryItem.Source
  • Undocumented

    Declaration

    Swift

    let value: HistoryItem.Payload
  • Hashes the essential components of this value by feeding them into the given hasher.

    Implement this method to conform to the Hashable protocol. The components used for hashing must be the same as the components compared in your type’s == operator implementation. Call hasher.combine(_:) with each of these components.

    Important

    In your implementation of hash(into:), don’t call finalize() on the hasher instance provided, or replace it with a different instance. Doing so may become a compile-time error in the future.

    Declaration

    Swift

    func hash(into hasher: inout Hasher)
  • Returns a Boolean value indicating whether two values are equal.

    Equality is the inverse of inequality. For any values a and b, a == b implies that a != b is false.

    Declaration

    Swift

    static func == (lhs: HistoryItem, rhs: HistoryItem) -> Bool

    Parameters

    lhs

    A value to compare.

    rhs

    Another value to compare.

  • Information about an entity related to a history item, at the time the event occurred.

    Declaration

    Swift

    struct Entity
    extension HistoryItem.Entity : Sendable
  • The source of the history item.

    Declaration

    Swift

    enum Source
    extension HistoryItem.Source : Sendable
  • The payload of the history item.

    Declaration

    Swift

    enum Payload
    extension HistoryItem.Payload : Sendable