pub struct PluginHost { /* private fields */ }Implementations§
Source§impl PluginHost
impl PluginHost
pub fn new(workspace: impl AsRef<Path>) -> Self
pub fn discover(&mut self) -> Result<(), PluginHostError>
pub fn register_validator(&mut self, plugin: Box<dyn ValidatorPlugin>)
pub fn register_exporter(&mut self, plugin: Box<dyn ExporterPlugin>)
pub fn register_workflow(&mut self, plugin: Box<dyn WorkflowPlugin>)
pub fn workspace(&self) -> &Path
pub fn discovered(&self) -> &[DiscoveredPlugin]
pub fn list_plugins(&self) -> Vec<PluginDescriptor>
pub fn run_validate_plugin( &self, plugin_id: &str, catalog: &OntologyCatalog, ) -> Result<Vec<Diagnostic>, PluginHostError>
pub fn run_all_validators(&self, catalog: &OntologyCatalog) -> Vec<Diagnostic>
pub fn run_export_plugin( &self, plugin_id: &str, catalog: &OntologyCatalog, options: ExportOptions, ) -> Result<RunPluginResult, PluginHostError>
pub fn run_workflow_plugin( &self, plugin_id: &str, step: &str, ) -> Result<RunPluginResult, PluginHostError>
pub fn run_plugin_action( &self, plugin_id: &str, action: &str, catalog: Option<&OntologyCatalog>, export_options: Option<ExportOptions>, step: Option<&str>, ) -> Result<RunPluginResult, PluginHostError>
Auto Trait Implementations§
impl !RefUnwindSafe for PluginHost
impl !UnwindSafe for PluginHost
impl Freeze for PluginHost
impl Send for PluginHost
impl Sync for PluginHost
impl Unpin for PluginHost
impl UnsafeUnpin for PluginHost
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