STRUCT

ContextFormField

Contents

public struct ContextFormField: FormField

A context form field.

Properties

name

public let name: String

label

public let label: Message?

placeholder

public let placeholder: Message?

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: any Encoder) throws

Parameters

Name Description
encoder The encoder to write data to.

==(::)

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

Returns a Bool value that indicates whether the receiver and a given object are equal.