StructDescriptor

@Immutable
@HomeExperimentalApi
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<FieldAny?>)

Returns the ClusterStruct representation of this descriptor.

Public properties

Map<UIntField>

Public functions

toStruct

fun toStruct(fields: Map<FieldAny?>): ClusterStruct

Returns the ClusterStruct representation of this descriptor.

Public properties

fields

val fieldsMap<UIntField>