use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ProvenanceDetectionResultApi {
#[serde(rename = "detected")]
Detected,
#[serde(rename = "not_detected")]
NotDetected,
}
impl std::fmt::Display for ProvenanceDetectionResultApi {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::Detected => write!(f, "detected"),
Self::NotDetected => write!(f, "not_detected"),
}
}
}
impl Default for ProvenanceDetectionResultApi {
fn default() -> ProvenanceDetectionResultApi {
Self::Detected
}
}