RestfulPropertyKit Documentation Beta

Structure Rest​Bearer​Token

public struct RestBearerToken: Codable 

A Decodable and Encodable bearer token representation with an attached type.

JSON representation:

{
    "token": "someTokenValue",
    "accountInfo": {
        "accountType": "someTypeValue"
    }
}
RestBearerToken RestBearerToken Codable Codable RestBearerToken->Codable

Conforms To

Codable

Properties

value

public let value: String

The token value.

type

public let type: RestBearerType

The bearer type representation.