import Foundation struct Titled { let title: String let items: [Content] } struct CVInfo { let language: String let top: TopInfo let work: Titled let education: Titled let publications: Titled let skills: Titled let about: Titled let footer: String } extension CVInfo: Identifiable { var id: String { language } } extension CVInfo: Equatable { static func == (lhs: CVInfo, rhs: CVInfo) -> Bool { lhs.language == rhs.language } } extension CVInfo: Hashable { func hash(into hasher: inout Hasher) { hasher.combine(language) } }