StructDescriptor

@Immutable
@HomeExperimentalGenericApi
interface StructDescriptor : Descriptor


Interface implemented by logical struct types. In addition to Matter-defined structs, this can be used to represent command, event and trait attribute containers approximated as structures.

Summary

Public functions

ClusterStruct
toStruct(fields: Map<Field, Any?>)

Returns the ClusterStruct representation of this descriptor.

Public properties

Map<UInt, Field>

Public functions

toStruct

fun toStruct(fields: Map<Field, Any?>): ClusterStruct

Returns the ClusterStruct representation of this descriptor.

Public properties

fields

val fields: Map<UInt, Field>