acme_engine/sources/registry.rs
1/*
2 appellation: registry <module>
3 authors: @FL03
4*/
5
6/// The [`SourceRegistry`] is a store for the various data sources that is directly managed
7/// by the [`SourceManager`](super::SourceManager). It is used to register and manage the
8/// sources available in the system.
9#[derive(Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
10#[cfg_attr(
11 feature = "serde",
12 derive(serde::Serialize, serde::Deserialize),
13 serde(rename_all = "snake_case")
14)]
15#[repr(C)]
16pub struct SourceRegistry {}
17
18impl SourceRegistry {
19 /// create a new instance of the [`SourceRegistry`].
20 pub const fn new() -> Self {
21 Self {}
22 }
23}