Struct windows::ApplicationModel::Store::LicenseInformation
pub struct LicenseInformation(/* private fields */);
Implementations§
§impl LicenseInformation
impl LicenseInformation
pub fn ProductLicenses(&self) -> Result<IMapView<HSTRING, ProductLicense>>
pub fn IsActive(&self) -> Result<bool>
pub fn IsTrial(&self) -> Result<bool>
pub fn ExpirationDate(&self) -> Result<DateTime>
pub fn LicenseChanged<P0>(&self, handler: P0) -> Result<EventRegistrationToken>where
P0: IntoParam<LicenseChangedEventHandler>,
pub fn RemoveLicenseChanged(&self, cookie: EventRegistrationToken) -> Result<()>
Trait Implementations§
§impl Clone for LicenseInformation
impl Clone for LicenseInformation
§fn clone(&self) -> LicenseInformation
fn clone(&self) -> LicenseInformation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for LicenseInformation
impl Debug for LicenseInformation
§impl From<&LicenseInformation> for &IInspectable
impl From<&LicenseInformation> for &IInspectable
§fn from(value: &LicenseInformation) -> Self
fn from(value: &LicenseInformation) -> Self
Converts to this type from the input type.
§impl From<&LicenseInformation> for &IUnknown
impl From<&LicenseInformation> for &IUnknown
§fn from(value: &LicenseInformation) -> Self
fn from(value: &LicenseInformation) -> Self
Converts to this type from the input type.
§impl From<LicenseInformation> for IInspectable
impl From<LicenseInformation> for IInspectable
§fn from(value: LicenseInformation) -> Self
fn from(value: LicenseInformation) -> Self
Converts to this type from the input type.
§impl From<LicenseInformation> for IUnknown
impl From<LicenseInformation> for IUnknown
§fn from(value: LicenseInformation) -> Self
fn from(value: LicenseInformation) -> Self
Converts to this type from the input type.
§impl Interface for LicenseInformation
impl Interface for LicenseInformation
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§impl PartialEq for LicenseInformation
impl PartialEq for LicenseInformation
§fn eq(&self, other: &LicenseInformation) -> bool
fn eq(&self, other: &LicenseInformation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for LicenseInformation
impl Send for LicenseInformation
impl StructuralPartialEq for LicenseInformation
impl Sync for LicenseInformation
Auto Trait Implementations§
impl RefUnwindSafe for LicenseInformation
impl Unpin for LicenseInformation
impl UnwindSafe for LicenseInformation
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more