winget_types/installer/authentication/
mod.rs

1pub use authentication_type::{AuthenticationType, AuthenticationTypeParseError};
2pub use info::{MicrosoftEntraIdAuthenticationInfo, Resource, ResourceError};
3
4mod authentication_type;
5pub mod info;
6
7#[derive(Clone, Debug, Default, Eq, PartialEq, Ord, PartialOrd, Hash)]
8#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
9#[cfg_attr(feature = "serde", serde(rename_all = "PascalCase"))]
10pub struct Authentication {
11    /// This field controls whether to use no authentication, Entra ID, or Entra ID for Azure
12    /// Blob Storage.
13    #[cfg_attr(feature = "serde", serde(rename = "AuthenticationType"))]
14    pub r#type: AuthenticationType,
15
16    /// This field controls the authentication details used when downloading or installing packages
17    /// from Entra Id secured private sources.
18    #[cfg_attr(
19        feature = "serde",
20        serde(skip_serializing_if = "MicrosoftEntraIdAuthenticationInfo::is_empty")
21    )]
22    pub microsoft_entra_id_authentication_info: MicrosoftEntraIdAuthenticationInfo,
23}