use graphrt_core::grounding::figures::NumberRules;
use graphrt_core::value::Value;
use graphrt_core::{NodeError, Selector, VariablePool};
use serde::Deserialize;
#[derive(Clone, Debug, Deserialize)]
pub struct AttributionConfig(serde::de::IgnoredAny);
pub(super) enum Attribution {}
impl AttributionConfig {
pub(super) fn problem(&self) -> Option<&'static str> {
Some("`attribution` needs a Graphrt build with the `grounding-attribution` feature (the default CLI has it)")
}
pub(super) fn selectors(&self) -> Vec<Selector> {
Vec::new()
}
pub(super) fn entity_selectors(&self) -> std::iter::Empty<&Selector> {
std::iter::empty()
}
pub(super) fn read(&self, _pool: &VariablePool, _numbers: NumberRules) -> Result<Attribution, NodeError> {
Err(NodeError::fatal("grounding", self.problem().unwrap_or_default()))
}
}
impl Attribution {
pub(super) fn findings(&self, _field: &str, _text: &str, _found: &mut Vec<Value>) {
match *self {}
}
}