// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
/// One non-diagonal confusion flow between two labels.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ExperimentConfusionFlowMetric {
    pub source: String,
    pub target: String,
    pub score: f64,
}
impl ExperimentConfusionFlowMetric {
    /// Construct a new `ExperimentConfusionFlowMetric` with the required fields set.
    #[allow(deprecated)]
    pub fn new(source: impl Into<String>, target: impl Into<String>, score: f64) -> Self {
        Self {
            source: source.into(),
            target: target.into(),
            score,
        }
    }
}
