use crate::rules::claim::ClaimPolarity;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct Effect {
themes: Vec<String>,
polarity: ClaimPolarity,
strength: f32,
}
impl Effect {
pub fn new(themes: Vec<String>, polarity: ClaimPolarity, strength: f32) -> Self {
Self {
themes,
polarity,
strength,
}
}
pub fn themes(&self) -> &[String] {
&self.themes
}
pub const fn polarity(&self) -> ClaimPolarity {
self.polarity
}
pub const fn strength(&self) -> f32 {
self.strength
}
}