Enumeration
JWTHeaderField
indirect enum JWTHeaderField
Topics
Enumeration Cases
case array([JWTHeaderField])case bool(Bool)case decimal(Double)case int(Int)case nullcase object([String : JWTHeaderField])case string(String)
Initializers
init(from: any Decoder) throwsCreates a new instance by decoding from the given decoder.
Instance Properties
var asArray: [JWTHeaderField]?var asBool: Bool?var asDecimal: Double?var asInt: Int?var asObject: [String : JWTHeaderField]?var asString: String?var isNull: Bool
Instance Methods
func asArray<T>(of: T.Type) throws -> [T]func asObject<T>(of: T.Type) throws -> [String : T]func encode(to: any Encoder) throwsEncodes this value into the given encoder.
Default Implementations
- ExpressibleByArrayLiteral Implementations
- ExpressibleByBooleanLiteral Implementations
- ExpressibleByDictionaryLiteral Implementations
- ExpressibleByFloatLiteral Implementations
- ExpressibleByIntegerLiteral Implementations
- ExpressibleByNilLiteral Implementations
- ExpressibleByStringLiteral Implementations
Relationships
Conforms To
Swift.CopyableSwift.DecodableSwift.EncodableSwift.EquatableSwift.EscapableSwift.ExpressibleByArrayLiteralSwift.ExpressibleByBooleanLiteralSwift.ExpressibleByDictionaryLiteralSwift.ExpressibleByExtendedGraphemeClusterLiteralSwift.ExpressibleByFloatLiteralSwift.ExpressibleByIntegerLiteralSwift.ExpressibleByNilLiteralSwift.ExpressibleByStringLiteralSwift.ExpressibleByUnicodeScalarLiteralSwift.HashableSwift.SendableSwift.SendableMetatype