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
nameThe name of this field.
valueThe value of this field.
inlineWhether this field can be inlined.
Field Structure Reference