pub struct GroupContext {
pub group_id: GroupID,
pub template_type_id: TypeId,
pub template_name: (&'static str, &'static str),
pub path: SharedStringSequence,
/* private fields */
}Expand description
Represents the context associated with a configuration group in the storage system.
A GroupContext provides necessary information about a particular group’s instantiation
and its connection to the underlying storage. Implementations of the storage system may
use this structure to manage and access configurations tied to a specific group.
Fields§
§group_id: GroupIDA unique identifier for the configuration group instance.
template_type_id: TypeIdThe type ID of the base template from which this group was derived. Used to validate the legitimacy of groups created afresh.
template_name: (&'static str, &'static str)Type name and module path of this group (cached),
path: SharedStringSequenceThe hierarchical path representing the location of this configuration set within a broader configuration system.
Implementations§
Source§impl GroupContext
impl GroupContext
Sourcepub fn find_item(&self, item_id: ItemID) -> Option<&EntityData>
pub fn find_item(&self, item_id: ItemID) -> Option<&EntityData>
Finds an item with the given item_id in the group’s sources.
Sourcepub fn watch_update(&self) -> Receiver
pub fn watch_update(&self) -> Receiver
Returns a channel for receiving update notifications for this group.
Sourcepub fn entities(&self) -> &[EntityData]
pub fn entities(&self) -> &[EntityData]
List of available entities