AnonymousAction
public struct AnonymousAction<Payload> : IdentifiableAction
extension AnonymousAction: EncodableAction
extension AnonymousAction: Equatable
An Action
created from an ActionTemplate
.
-
The identifier for the
AnonymousAction
Declaration
Swift
public let id: String
-
The
Payload
for theAnonymousAction
Declaration
Swift
public let payload: Payload
-
Check if the
AnonymousAction
was created from a givenActionTemplate
.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