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
14
15
16
use serde::{Deserialize, Serialize};

use crate::domain::derivation_operation::DerivationOperation;
use crate::domain::interpreted_value::InterpretedValue;

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct DerivationResult {
    pub plugin: String,
    pub operation: DerivationOperation,
    pub answer: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub value: Option<InterpretedValue>,
    pub included_refs: Vec<String>,
    pub excluded_refs: Vec<String>,
    pub diagnostics: Vec<String>,
}