Field

public struct Field : Encodable

Represents an Embed’s fields.

  • The name of the field.

    Declaration

    Swift

    public var name: String
  • The value of the field.

    Declaration

    Swift

    public var value: String
  • Whether this field should be inlined

    Declaration

    Swift

    public var inline: Bool
  • Creates a Field object.

    Declaration

    Swift

    public init(name: String, value: String, inline: Bool = false)

    Parameters

    name

    The name of this field.

    value

    The value of this field.

    inline

    Whether this field can be inlined.