AnonymousAction

public struct AnonymousAction<Payload> : IdentifiableAction
extension AnonymousAction: EncodableAction
extension AnonymousAction: Equatable

An Action created from an ActionTemplate.

  • id

    The identifier for the AnonymousAction

    Declaration

    Swift

    public let id: String
  • The Payload for the AnonymousAction

    Declaration

    Swift

    public let payload: Payload
  • Check if the AnonymousAction was created from a given ActionTemplate.

    Declaration

    Swift

    public func wasCreated(from actionTemplate: ActionTemplate<Payload>) -> Bool

    Parameters

    actionTemplate

    The ActionTemplate to check

  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws
  • Declaration

    Swift

    public static func == (lhs: `Self`, rhs: `Self`) -> Bool