AnonymousAction

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

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