pub struct RegistryWriter { /* private fields */ }Expand description
Registers ScannedModule instances directly into an apcore Registry.
This is the default writer used when no output_format is specified. Instead of writing files, it registers modules directly for immediate use.
§Handler Resolution
By default (RegistryWriter::new()), modules are registered with a passthrough
handler that returns inputs unchanged — useful for schema-only registration
where execution is handled elsewhere.
For executable modules, use RegistryWriter::with_handler_factory(factory) to
provide a HandlerFactory that resolves target strings to real handlers.
Implementations§
Source§impl RegistryWriter
impl RegistryWriter
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a RegistryWriter with passthrough handlers (schema-only registration).
Sourcepub fn with_handler_factory(factory: HandlerFactory) -> Self
pub fn with_handler_factory(factory: HandlerFactory) -> Self
Create a RegistryWriter with a custom handler factory for target resolution.
Source§impl RegistryWriter
impl RegistryWriter
Sourcepub fn write(
&self,
modules: &[ScannedModule],
registry: &mut Registry,
dry_run: bool,
verify: bool,
verifiers: Option<&[&dyn Verifier]>,
) -> Vec<WriteResult>
pub fn write( &self, modules: &[ScannedModule], registry: &mut Registry, dry_run: bool, verify: bool, verifiers: Option<&[&dyn Verifier]>, ) -> Vec<WriteResult>
Register scanned modules into the registry.
registry: The apcore Registry to register modules into.dry_run: If true, skip registration and return results only.verify: If true, verify modules are retrievable after registration.verifiers: Optional custom verifiers run after the built-in check.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RegistryWriter
impl !RefUnwindSafe for RegistryWriter
impl Send for RegistryWriter
impl Sync for RegistryWriter
impl Unpin for RegistryWriter
impl UnsafeUnpin for RegistryWriter
impl !UnwindSafe for RegistryWriter
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