kmp-plugin-api 0.6.0

Public plugin API for the KMP kernel: evidence value and derivation traits, free of kernel internals
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::application::dto::evidence_interpretation_input::EvidenceInterpretationInput;
use crate::application::dto::evidence_interpretation_output::EvidenceInterpretationOutput;
use crate::domain::interpretation_error::InterpretationError;

/// Outbound port implemented by a deterministic evidence interpreter.
pub trait EvidenceValuePlugin: Send + Sync {
    fn id(&self) -> &'static str;

    fn interpret(
        &self,
        input: &EvidenceInterpretationInput,
    ) -> Result<EvidenceInterpretationOutput, InterpretationError>;
}