STRUCT

InteractiveFormStep

Contents

public struct InteractiveFormStep: HaapiRepresentation, Equatable

A step that only contains form actions.

Properties

actions

public var actions: [FormAction]

Possible actions a user or the client may choose to take to continue the flow.

type

public let type: RepresentationType

metadata

public let metadata: Metadata?

messages

public let messages: [UserMessage]

links

public let links: [Link]

properties

public let properties: Properties?

Methods

init(from:)

public init(from decoder: Decoder) throws

Parameters

Name Description
decoder The decoder to read data from.

encode(to:)

public func encode(to encoder: Encoder) throws

Parameters

Name Description
encoder The encoder to write data to.

==(::)

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

Parameters

Name Description
lhs A value to compare.
rhs Another value to compare.