pub struct ConfigRegistry {
pub configs: Vec<ConfigInstance>,
}Expand description
Registry of discovered configuration instances.
Config instances are the primary subjects of config/*.jsonld files — each
one wires a concrete set of parameter values to a component class. The LSP
uses this registry to:
- Validate that all required parameters are present in an open config file
- Provide diagnostics when a
@typeIRI does not match any known component - Enable goto-definition on instance IRIs via
source_file+iri_span
Fields§
§configs: Vec<ConfigInstance>Implementations§
Source§impl ConfigRegistry
impl ConfigRegistry
pub fn new() -> Self
Sourcepub async fn discover_configs(
&mut self,
fs: &dyn Fs,
state: &ModuleState,
) -> Result<()>
pub async fn discover_configs( &mut self, fs: &dyn Fs, state: &ModuleState, ) -> Result<()>
Discover and load all config files reachable from the import paths.
Trait Implementations§
Source§impl Clone for ConfigRegistry
impl Clone for ConfigRegistry
Source§fn clone(&self) -> ConfigRegistry
fn clone(&self) -> ConfigRegistry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ConfigRegistry
impl RefUnwindSafe for ConfigRegistry
impl Send for ConfigRegistry
impl Sync for ConfigRegistry
impl Unpin for ConfigRegistry
impl UnsafeUnpin for ConfigRegistry
impl UnwindSafe for ConfigRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more