Skip to main content

component_id_to_metadata_field

Function component_id_to_metadata_field 

Source
pub fn component_id_to_metadata_field(id: ComponentId) -> Option<MetadataField>
Expand description

Map a ComponentId back to the MetadataField attribute name that stores it in the legacy GroupMutableMetadata extension.

Returns None for component ids that are not backed by a GroupMutableMetadata attribute (e.g. ADMIN_LIST, GROUP_MEMBERSHIP, or anything outside the mutable metadata family).