winget-types 0.5.0

WinGet Types
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::ManifestType;

/// A manifest where the only field is the type of the manifest itself.
///
/// This is useful for deserializing once into this type to determine which
/// manifest to properly deserialize into.
#[derive(Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize))]
pub struct GenericManifest {
    #[cfg_attr(feature = "serde", serde(rename = "ManifestType"))]
    pub r#type: ManifestType,
}