Attributes

struct Attributes

Attributes for the UnitTestingTrait.

  • Returns a Boolean value indicating whether two values are equal.

    Equality is the inverse of inequality. For any values a and b, a == b implies that a != b is false.

    Declaration

    Swift

    static func == (lhs: Matter.UnitTestingTrait.Attributes, rhs: Matter.UnitTestingTrait.Attributes) -> Bool

    Parameters

    lhs

    A value to compare.

    rhs

    Another value to compare.

  • A list of client-generated commands which are supported by this cluster server instance.

    Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var acceptedCommandList: [UInt32]? { get }
  • A list of the attribute IDs of the attributes supported by the cluster instance. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var attributeList: [UInt32]? { get }
  • bitmap16 attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var bitmap16: Matter.UnitTestingTrait.Bitmap16MaskMap? { get }
  • bitmap32 attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var bitmap32: Matter.UnitTestingTrait.Bitmap32MaskMap? { get }
  • bitmap64 attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var bitmap64: Matter.UnitTestingTrait.Bitmap64MaskMap? { get }
  • bitmap8 attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var bitmap8: Matter.UnitTestingTrait.Bitmap8MaskMap? { get }
  • boolean attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var boolean: Bool? { get }
  • charString attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var charString: String? { get }
  • clusterErrorBoolean attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var clusterErrorBoolean: Bool? { get }
  • The revision of the server cluster specification supported by the cluster instance. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var clusterRevision: UInt16? { get }
  • Writes this object to the given TraitEncoder. Throws HomeError.encodingFailed if the data could not be encoded.

    Declaration

    Swift

    func encode(with encoder: TraitEncoder) throws
  • enum16 attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var enum16: UInt16? { get }
  • enum8 attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var enum8: UInt8? { get }
  • enumAttr attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var enumAttr: Matter.UnitTestingTrait.SimpleEnum? { get }
  • epochS attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var epochS: UInt32? { get }
  • epochUs attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var epochUs: UInt64? { get }
  • Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var failureInt32U: UInt32? { get }
  • Whether the server supports zero or more optional cluster features. A cluster feature is a set of cluster elements that are mandatory or optional for a defined feature of the cluster. If a cluster feature is supported by the cluster instance, then the corresponding bit is set to 1, otherwise the bit is set to 0 (zero). Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var featureMap: UInt32? { get }
  • floatDouble attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var floatDouble: Float64? { get }
  • floatSingle attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var floatSingle: Float32? { get }
  • generalErrorBoolean attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var generalErrorBoolean: Bool? { get }
  • A list of server-generated commands (server to client) which are supported by this cluster server instance. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var generatedCommandList: [UInt32]? { get }
  • Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var globalEnum: Matter.UnitTestingTrait.TestGlobalEnum? { get }
  • Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var globalStruct: Matter.UnitTestingTrait.TestGlobalStruct? { get }
  • Hashes the essential components of this value by feeding them into the given hasher.

    Implement this method to conform to the Hashable protocol. The components used for hashing must be the same as the components compared in your type’s == operator implementation. Call hasher.combine(_:) with each of these components.

    Important

    In your implementation of hash(into:), don’t call finalize() on the hasher instance provided, or replace it with a different instance. Doing so may become a compile-time error in the future.

    Declaration

    Swift

    func hash(into hasher: inout Hasher)
  • The trait identifier.

    Declaration

    Swift

    static var identifier: String { get }
  • int16s attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var int16s: Int16? { get }
  • int16u attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var int16u: UInt16? { get }
  • int24s attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var int24s: Int32? { get }
  • int24u attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var int24u: UInt32? { get }
  • int32s attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var int32s: Int32? { get }
  • int32u attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var int32u: UInt32? { get }
  • int40s attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var int40s: Int64? { get }
  • int40u attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var int40u: UInt64? { get }
  • int48s attribute. Not the same as [int48u][UnitTestingTrait.Attributes.int48u]. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var int48s: Int64? { get }
  • int48u attribute. Not the same as [int48s][UnitTestingTrait.Attributes.int48s]. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var int48u: UInt64? { get }
  • int56s attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var int56s: Int64? { get }
  • int56u attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var int56u: UInt64? { get }
  • int64s attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var int64s: Int64? { get }
  • int64u attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var int64u: UInt64? { get }
  • int8s attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var int8s: Int8? { get }
  • int8u attribute. Could be used as the argument for TestAddArgumentsCommand, for example. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var int8u: UInt8? { get }
  • listFabricScoped attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var listFabricScoped: [Matter.UnitTestingTrait.TestFabricScoped]? { get }
  • listInt8u attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var listInt8u: [UInt8]? { get }
  • listLongOctetString attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var listLongOctetString: [Data]? { get }
  • listNullablesAndOptionalsStruct attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var listNullablesAndOptionalsStruct: [Matter.UnitTestingTrait.NullablesAndOptionalsStruct]? { get }
  • listOctetString attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var listOctetString: [Data]? { get }
  • listStructOctetString attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var listStructOctetString: [Matter.UnitTestingTrait.TestListStructOctet]? { get }
  • longCharString attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var longCharString: String? { get }
  • longOctetString attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var longOctetString: Data? { get }
  • Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var meiInt8u: UInt8? { get }
  • nullableBitmap16 attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableBitmap16: Matter.UnitTestingTrait.Bitmap16MaskMap? { get }
  • nullableBitmap32 attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableBitmap32: Matter.UnitTestingTrait.Bitmap32MaskMap? { get }
  • nullableBitmap64 attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableBitmap64: Matter.UnitTestingTrait.Bitmap64MaskMap? { get }
  • nullableBitmap8 attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableBitmap8: Matter.UnitTestingTrait.Bitmap8MaskMap? { get }
  • nullableBoolean attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableBoolean: Bool? { get }
  • nullableCharString attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableCharString: String? { get }
  • nullableEnum16 attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableEnum16: UInt16? { get }
  • nullableEnum8 attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableEnum8: UInt8? { get }
  • nullableEnumAttr attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableEnumAttr: Matter.UnitTestingTrait.SimpleEnum? { get }
  • nullableFloatDouble attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableFloatDouble: Float64? { get }
  • nullableFloatSingle attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableFloatSingle: Float32? { get }
  • Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableGlobalEnum: Matter.UnitTestingTrait.TestGlobalEnum? { get }
  • Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableGlobalStruct: Matter.UnitTestingTrait.TestGlobalStruct? { get }
  • nullableInt16s attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableInt16s: Int16? { get }
  • nullableInt16u attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableInt16u: UInt16? { get }
  • nullableInt24s attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableInt24s: Int32? { get }
  • nullableInt24u attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableInt24u: UInt32? { get }
  • nullableInt32s attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableInt32s: Int32? { get }
  • nullableInt32u attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableInt32u: UInt32? { get }
  • nullableInt40s attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableInt40s: Int64? { get }
  • nullableInt40u attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableInt40u: UInt64? { get }
  • nullableInt48s attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableInt48s: Int64? { get }
  • nullableInt48u attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableInt48u: UInt64? { get }
  • nullableInt56s attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableInt56s: Int64? { get }
  • nullableInt56u attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableInt56u: UInt64? { get }
  • nullableInt64s attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableInt64s: Int64? { get }
  • nullableInt64u attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableInt64u: UInt64? { get }
  • nullableInt8s attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableInt8s: Int8? { get }
  • nullableInt8u attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableInt8u: UInt8? { get }
  • nullableOctetString attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableOctetString: Data? { get }
  • nullableRangeRestrictedInt16s attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableRangeRestrictedInt16s: Int16? { get }
  • nullableRangeRestrictedInt16u attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableRangeRestrictedInt16u: UInt16? { get }
  • nullableRangeRestrictedInt8s attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableRangeRestrictedInt8s: Int8? { get }
  • nullableRangeRestrictedInt8u attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableRangeRestrictedInt8u: UInt8? { get }
  • nullableStruct attribute. Nullable: true.

    Declaration

    Swift

    @TraitAttribute
    var nullableStruct: Matter.UnitTestingTrait.SimpleStruct? { get }
  • octetString attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var octetString: Data? { get }
  • rangeRestrictedInt16s attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var rangeRestrictedInt16s: Int16? { get }
  • rangeRestrictedInt16u attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var rangeRestrictedInt16u: UInt16? { get }
  • rangeRestrictedInt8s attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var rangeRestrictedInt8s: Int8? { get }
  • rangeRestrictedInt8u attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var rangeRestrictedInt8u: UInt8? { get }
  • Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var readFailureCode: UInt8? { get }
  • structAttr attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var structAttr: Matter.UnitTestingTrait.SimpleStruct? { get }
  • timedWriteBoolean attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var timedWriteBoolean: Bool? { get }
  • unsupported attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var unsupported: Bool? { get }
  • vendorId attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var vendorId: UInt16? { get }
  • writeOnlyInt8u attribute. Nullable: false.

    Declaration

    Swift

    @TraitAttribute
    var writeOnlyInt8u: UInt8? { get }