nyquest-backend-winrt 0.4.0

Windows.Web.Http.HttpClient backend for nyquest
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use windows::core as windows_core;
use windows::core::*;
use windows_collections::{IKeyValuePair, IKeyValuePair_Impl};

#[implement(IKeyValuePair<HSTRING, HSTRING>)]
pub(crate) struct StringPair(pub(crate) HSTRING, pub(crate) HSTRING);

#[allow(non_snake_case)]
impl IKeyValuePair_Impl<HSTRING, HSTRING> for StringPair_Impl {
    fn Key(&self) -> windows_core::Result<HSTRING> {
        Ok(self.0.clone())
    }

    fn Value(&self) -> windows_core::Result<HSTRING> {
        Ok(self.1.clone())
    }
}