Skip to main content

winget_types/utils/
generic_manifest.rs

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