winget_types/shared/generic.rs
1use super::ManifestType;
2
3/// A manifest where the only field is the type of the manifest itself. Useful for deserializing
4/// once into this type to determine which manifest to properly deserialize into.
5#[derive(Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)]
6#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
7pub struct GenericManifest {
8 #[cfg_attr(feature = "serde", serde(rename = "ManifestType"))]
9 pub r#type: ManifestType,
10}