Skip to main content

MappingPlugin

Trait MappingPlugin 

Source
pub trait MappingPlugin: Send + Sync {
    // Required methods
    fn id(&self) -> &str;
    fn version(&self) -> &str;
    fn register(&self, registry: &mut MappingRegistry);

    // Provided method
    fn validate(&self) -> Result<(), ValidationError> { ... }
}
Expand description

Enterprise plugin interface for custom library mappings

Required Methods§

Source

fn id(&self) -> &str

Plugin identifier (e.g., “netflix-internal”, “google-cloud”)

Source

fn version(&self) -> &str

Plugin version

Source

fn register(&self, registry: &mut MappingRegistry)

Register mappings into the registry

Provided Methods§

Source

fn validate(&self) -> Result<(), ValidationError>

Optional: Validate that mappings are correct

Implementors§