Struct windows::Services::TargetedContent::TargetedContentValue
pub struct TargetedContentValue(/* private fields */);
Implementations§
§impl TargetedContentValue
impl TargetedContentValue
pub fn ValueKind(&self) -> Result<TargetedContentValueKind>
pub fn Path(&self) -> Result<HSTRING>
pub fn String(&self) -> Result<HSTRING>
pub fn Uri(&self) -> Result<Uri>
pub fn Number(&self) -> Result<f64>
pub fn Boolean(&self) -> Result<bool>
pub fn File(&self) -> Result<TargetedContentFile>
pub fn ImageFile(&self) -> Result<TargetedContentImage>
pub fn Action(&self) -> Result<TargetedContentAction>
pub fn Strings(&self) -> Result<IVectorView<HSTRING>>
pub fn Uris(&self) -> Result<IVectorView<Uri>>
pub fn Numbers(&self) -> Result<IVectorView<f64>>
pub fn Booleans(&self) -> Result<IVectorView<bool>>
pub fn Files(&self) -> Result<IVectorView<TargetedContentFile>>
pub fn ImageFiles(&self) -> Result<IVectorView<TargetedContentImage>>
pub fn Actions(&self) -> Result<IVectorView<TargetedContentAction>>
Trait Implementations§
§impl Clone for TargetedContentValue
impl Clone for TargetedContentValue
§fn clone(&self) -> TargetedContentValue
fn clone(&self) -> TargetedContentValue
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 TargetedContentValue
impl Debug for TargetedContentValue
§impl From<&TargetedContentValue> for &IInspectable
impl From<&TargetedContentValue> for &IInspectable
§fn from(value: &TargetedContentValue) -> Self
fn from(value: &TargetedContentValue) -> Self
Converts to this type from the input type.
§impl From<&TargetedContentValue> for &IUnknown
impl From<&TargetedContentValue> for &IUnknown
§fn from(value: &TargetedContentValue) -> Self
fn from(value: &TargetedContentValue) -> Self
Converts to this type from the input type.
§impl From<TargetedContentValue> for IInspectable
impl From<TargetedContentValue> for IInspectable
§fn from(value: TargetedContentValue) -> Self
fn from(value: TargetedContentValue) -> Self
Converts to this type from the input type.
§impl From<TargetedContentValue> for IUnknown
impl From<TargetedContentValue> for IUnknown
§fn from(value: TargetedContentValue) -> Self
fn from(value: TargetedContentValue) -> Self
Converts to this type from the input type.
§impl Interface for TargetedContentValue
impl Interface for TargetedContentValue
§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 TargetedContentValue
impl PartialEq for TargetedContentValue
§fn eq(&self, other: &TargetedContentValue) -> bool
fn eq(&self, other: &TargetedContentValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TargetedContentValue
impl Send for TargetedContentValue
impl StructuralPartialEq for TargetedContentValue
impl Sync for TargetedContentValue
Auto Trait Implementations§
impl RefUnwindSafe for TargetedContentValue
impl Unpin for TargetedContentValue
impl UnwindSafe for TargetedContentValue
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