Role

public enum Role: Int
extension Role: RawRepresentable, Codable

The users’s role which gives different behaviors, permisions to user.

  • The default role that means nothing.

    Declaration

    Swift

    case none = 0
  • The role of operator.

    Declaration

    Swift

    case `operator` = 1
  • Declaration

    Swift

    public typealias RawValue = String
  • Declaration

    Swift

    public init(rawValue: String)
  • Declaration

    Swift

    public var rawValue: String
  • Default constructor.

    Declaration

    Swift

    public init(from decoder: Decoder) throws

    Parameters

    decoder

    Decoder instance

  • Encodes this object.

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws

    Parameters

    encoder

    Encoder instance