| #[doc = "*Required features: `\"UI_Shell\"`, `\"implement\"`*"] |
| pub trait IAdaptiveCard_Impl: Sized { |
| fn ToJson(&self) -> ::windows_core::Result<::windows_core::HSTRING>; |
| } |
| impl ::windows_core::RuntimeName for IAdaptiveCard { |
| const NAME: &'static str = "Windows.UI.Shell.IAdaptiveCard"; |
| } |
| impl IAdaptiveCard_Vtbl { |
| pub const fn new<Identity: ::windows_core::IUnknownImpl<Impl = Impl>, Impl: IAdaptiveCard_Impl, const OFFSET: isize>() -> IAdaptiveCard_Vtbl { |
| unsafe extern "system" fn ToJson<Identity: ::windows_core::IUnknownImpl<Impl = Impl>, Impl: IAdaptiveCard_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT { |
| let this = (this as *const *const ()).offset(OFFSET) as *const Identity; |
| let this = (*this).get_impl(); |
| match this.ToJson() { |
| ::core::result::Result::Ok(ok__) => { |
| ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); |
| ::core::mem::forget(ok__); |
| ::windows_core::HRESULT(0) |
| } |
| ::core::result::Result::Err(err) => err.into(), |
| } |
| } |
| Self { base__: ::windows_core::IInspectable_Vtbl::new::<Identity, IAdaptiveCard, OFFSET>(), ToJson: ToJson::<Identity, Impl, OFFSET> } |
| } |
| pub fn matches(iid: &::windows_core::GUID) -> bool { |
| iid == &<IAdaptiveCard as ::windows_core::ComInterface>::IID |
| } |
| } |
| #[doc = "*Required features: `\"UI_Shell\"`, `\"implement\"`*"] |
| pub trait IAdaptiveCardBuilderStatics_Impl: Sized { |
| fn CreateAdaptiveCardFromJson(&self, value: &::windows_core::HSTRING) -> ::windows_core::Result<IAdaptiveCard>; |
| } |
| impl ::windows_core::RuntimeName for IAdaptiveCardBuilderStatics { |
| const NAME: &'static str = "Windows.UI.Shell.IAdaptiveCardBuilderStatics"; |
| } |
| impl IAdaptiveCardBuilderStatics_Vtbl { |
| pub const fn new<Identity: ::windows_core::IUnknownImpl<Impl = Impl>, Impl: IAdaptiveCardBuilderStatics_Impl, const OFFSET: isize>() -> IAdaptiveCardBuilderStatics_Vtbl { |
| unsafe extern "system" fn CreateAdaptiveCardFromJson<Identity: ::windows_core::IUnknownImpl<Impl = Impl>, Impl: IAdaptiveCardBuilderStatics_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, value: ::std::mem::MaybeUninit<::windows_core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT { |
| let this = (this as *const *const ()).offset(OFFSET) as *const Identity; |
| let this = (*this).get_impl(); |
| match this.CreateAdaptiveCardFromJson(::core::mem::transmute(&value)) { |
| ::core::result::Result::Ok(ok__) => { |
| ::core::ptr::write(result__, ::core::mem::transmute_copy(&ok__)); |
| ::core::mem::forget(ok__); |
| ::windows_core::HRESULT(0) |
| } |
| ::core::result::Result::Err(err) => err.into(), |
| } |
| } |
| Self { |
| base__: ::windows_core::IInspectable_Vtbl::new::<Identity, IAdaptiveCardBuilderStatics, OFFSET>(), |
| CreateAdaptiveCardFromJson: CreateAdaptiveCardFromJson::<Identity, Impl, OFFSET>, |
| } |
| } |
| pub fn matches(iid: &::windows_core::GUID) -> bool { |
| iid == &<IAdaptiveCardBuilderStatics as ::windows_core::ComInterface>::IID |
| } |
| } |