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