Subuser
public struct Subuser : Codable
The Subuser
struct represents a subuser on a parent account.
-
The unique ID of the subuser account.
Declaration
Swift
public let id: Int
-
The subuser’s username.
Declaration
Swift
public let username: String
-
The email address on the subuser’s profile.
Declaration
Swift
public let email: String
-
A boolean indicating if the subuser is disabled or not.
Declaration
Swift
public let disabled: Bool
-
Initializes the struct with an ID, username, email, and
disabled
flag.Declaration
Swift
public init(id: Int, username: String, email: String, disabled: Bool)
Parameters
id
The unique ID of the subuser account.
username
The subuser’s username.
email
The email address on the subuser’s profile.
disabled
A boolean indicating if the subuser is disabled or not.