# TestFabricScoped

    struct TestFabricScoped

TestFabricScoped
- `


  ### [fabricSensitiveInt8u](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/TestFabricScoped#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV16TestFabricScopedV20fabricSensitiveInt8us5UInt8Vvp)


  ` `fabricSensitiveInt8u` attribute.

  #### Declaration

  Swift

      let fabricSensitiveInt8u: UInt8

- `


  ### [optionalFabricSensitiveInt8u](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/TestFabricScoped#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV16TestFabricScopedV08optionalI14SensitiveInt8us5UInt8VSgvp)


  ` `optionalFabricSensitiveInt8u` attribute.

  #### Declaration

  Swift

      let optionalFabricSensitiveInt8u: UInt8?

- `


  ### [nullableFabricSensitiveInt8u](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/TestFabricScoped#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV16TestFabricScopedV08nullableI14SensitiveInt8us5UInt8VSgvp)


  ` `nullableFabricSensitiveInt8u` attribute.

  #### Declaration

  Swift

      let nullableFabricSensitiveInt8u: UInt8?

- `


  ### [nullableOptionalFabricSensitiveInt8u](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/TestFabricScoped#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV16TestFabricScopedV016nullableOptionalI14SensitiveInt8us5UInt8VSgvp)


  ` `nullableOptionalFabricSensitiveInt8u` attribute.

  #### Declaration

  Swift

      let nullableOptionalFabricSensitiveInt8u: UInt8?

- `


  ### [fabricSensitiveCharString](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/TestFabricScoped#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV16TestFabricScopedV25fabricSensitiveCharStringSSvp)


  ` `fabricSensitiveCharString` attribute.

  #### Declaration

  Swift

      let fabricSensitiveCharString: String

- `


  ### [fabricSensitiveStruct](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/TestFabricScoped#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV16TestFabricScopedV21fabricSensitiveStructAE06SimpleM0Vvp)


  ` `fabricSensitiveStruct` attribute.

  #### Declaration

  Swift

      let fabricSensitiveStruct: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/SimpleStruct.html

- `


  ### [fabricSensitiveInt8uList](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/TestFabricScoped#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV16TestFabricScopedV24fabricSensitiveInt8uListSays5UInt8VGvp)


  ` `fabricSensitiveInt8uList` attribute.

  #### Declaration

  Swift

      let fabricSensitiveInt8uList: [UInt8]

- `


  ### [fabricIndex](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/TestFabricScoped#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV16TestFabricScopedV11fabricIndexs5UInt8Vvp)


  ` `fabricIndex` attribute.

  #### Declaration

  Swift

      let fabricIndex: UInt8

- `


  ### [init(decoder:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/TestFabricScoped#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV16TestFabricScopedV7decoderAG0aB3SDK0G7DecoderV_tKcfc)


  ` Creates a new Struct instance using data read from the given `TraitDecoder`.
  Throws
  `HomeError.parseError` when parsing fails.

  #### Declaration

  Swift

      init(decoder: TraitDecoder) throws

  #### Parameters

  |---|---|
  | ` decoder ` | The raw data representing this Struct. |

- `


  ### [encode(with:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/TestFabricScoped#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV16TestFabricScopedV6encode4withy0aB3SDK0G7EncoderC_tKF)


  ` Writes this Struct to the given `TraitEncoder`.
  Throws `HomeError.parseError` if the data could not be encoded.

  #### Declaration

  Swift

      func encode(with encoder: TraitEncoder) throws

- `


  ### [structField(id:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/UnitTestingTrait/TestFabricScoped#/s:15GoogleHomeTypes6MatterO16UnitTestingTraitV16TestFabricScopedV11structField2id0aB3SDK0L0_pSgs6UInt32V_tFZ)


  ` Returns the field corresponding to the given field ID.

  #### Declaration

  Swift

      static func structField(id: UInt32) -> (any Field)?