use crate::{Dependencies, SourceSets};
use serde::{Serialize,Deserialize};
#[derive(Deserialize, Serialize, Debug, PartialEq)]
#[serde(bound(deserialize = "'de: 'a"))]
pub enum ModuleContent<'a> {
SourceSets(SourceSets<'a>),
Dependencies(Dependencies<'a>),
}
impl std::fmt::Display for ModuleContent<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
ModuleContent::SourceSets(source_sets) => write!(f, "{}", source_sets.to_string())?,
ModuleContent::Dependencies(dependencies) => write!(f, "{}", dependencies.to_string())?,
};
Ok(())
}
}