Instance Propertyvapor.jwt-kit 5.1.2JWTKit
asBool
JWTHeaderField.swift:82var asBool: Bool? { get }
var asBool: Bool? { get }
import JWTKit
🔑 JSON Web Token signing and verification (HMAC, RSA, PSS, ECDSA, EdDSA) using SwiftCrypto.
indirect enum JWTHeaderField
@frozen struct Bool
A value type whose instances are either true
or false
.
init(arrayLiteral elements: JWTHeaderField...)
init(booleanLiteral value: BooleanLiteralType)
init(dictionaryLiteral elements: (String, JWTHeaderField)...)
init(floatLiteral value: FloatLiteralType)
init(from decoder: any Decoder) throws
init(integerLiteral value: IntegerLiteralType)
init(nilLiteral _: ())
init(stringLiteral value: StringLiteralType)
var asArray: [Self]? { get }
var asDecimal: Double? { get }
var asInt: Int? { get }
var asObject: [String : Self]? { get }
var asString: String? { get }
var isNull: Bool { get }
func asArray<T>(of _: T.Type) throws -> [T]
func asObject<T>(of _: T.Type) throws -> [String : T]
func encode(to encoder: any Encoder) throws