STRUCT

FormAction

Contents

public struct FormAction: Action

Form actions instruct a client to display a form that a user can interact with.

Properties

kind

public let kind: ActionKind

title

public let title: Message?

model

public let model: FormActionModel

The action model.

properties

public let properties: Properties?

The action 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: FormAction, rhs: FormAction) -> Bool

Parameters

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