struct ReplacementProductStruct
The details of a replacement HEPA filter.
-
The type of product identification. Valid values are defined in
ProductIdentifierTypeEnum
.Declaration
Swift
let productIdentifierType: Matter.HepaFilterMonitoringTrait.ProductIdentifierTypeEnum
-
A unique identifier used to identify a replacement product.
Declaration
Swift
let productIdentifierValue: String
-
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.
-
Writes this Struct to the given
TraitEncoder
. ThrowsHomeError.parseError
if the data could not be encoded.Declaration
Swift
func encode(with encoder: TraitEncoder) throws
-
Returns the field corresponding to the given field ID.
Declaration
Swift
static func structField(id: UInt32) -> (any Field)?