Struct find_winsdk::SdkInfo
source · pub struct SdkInfo { /* private fields */ }
Expand description
Information about a Windows SDK installation.
Implementations§
source§impl SdkInfo
impl SdkInfo
sourcepub fn find(version: SdkVersion) -> Result<Option<Self>>
pub fn find(version: SdkVersion) -> Result<Option<Self>>
Returns installation information for a Windows SDK installation.
If SdkVersion::Any
is specified, this method will first query environment variables, then
search the registry for the latest Windows SDK recognised by this crate. If a specific
version is specified, this method will only look for that version before giving up.
sourcepub fn installation_folder(&self) -> &Path
pub fn installation_folder(&self) -> &Path
Returns the filesystem path to where a Windows SDK instance is installed.
sourcepub fn product_name(&self) -> Option<&str>
pub fn product_name(&self) -> Option<&str>
Returns the human-readable name of a Windows SDK instance.
sourcepub fn product_version(&self) -> &str
pub fn product_version(&self) -> &str
Returns the version number of a Windows SDK instance.
Trait Implementations§
source§impl<'de> Deserialize<'de> for SdkInfo
impl<'de> Deserialize<'de> for SdkInfo
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more