Credential
public struct Credential : HADataDecodable
A credential authentication provider
-
The type of the credential, for example homeassistant
Declaration
Swift
public var type: String
-
The id of the credential, specific to that credential
Declaration
Swift
public var id: String?
-
Create with data
Throws
If any required keys are missingDeclaration
Swift
public init(data: HAData) throws
Parameters
data
The data from the server
-
Create with a given type and id
Declaration
Swift
public init(type: String, id: String?)
Parameters
type
The type of the credential
id
The id of the credential