pub struct ConfigInstance {
pub iri: String,
pub component_type_iri: String,
pub parameters: HashMap<String, JsonLdVal>,
pub source_file: String,
pub iri_span: Range<usize>,
}Expand description
A concrete configuration instance — a pre-wired instantiation of a component
with specific parameter values, declared in a config/*.jsonld file.
Config instances are the primary subject of config files. The LSP uses them
to validate that all required parameters are present and that value types
match the CjsParameter.range constraints. source_file + iri_span
support goto-definition when the instance IRI is referenced elsewhere.
Fields§
§iri: StringIRI of this config instance.
component_type_iri: StringIRI of the component class this instance instantiates (@type value).
parameters: HashMap<String, JsonLdVal>Parameter values keyed by their fully expanded parameter IRI.
source_file: StringAbsolute path to the config file containing this instance.
iri_span: Range<usize>Byte range of the @id value for this instance in source_file.
Trait Implementations§
Source§impl Clone for ConfigInstance
impl Clone for ConfigInstance
Source§fn clone(&self) -> ConfigInstance
fn clone(&self) -> ConfigInstance
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 ConfigInstance
impl RefUnwindSafe for ConfigInstance
impl Send for ConfigInstance
impl Sync for ConfigInstance
impl Unpin for ConfigInstance
impl UnsafeUnpin for ConfigInstance
impl UnwindSafe for ConfigInstance
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