Struct windows::ApplicationModel::Email::EmailMailbox
pub struct EmailMailbox(/* private fields */);
Implementations§
§impl EmailMailbox
impl EmailMailbox
pub fn Capabilities(&self) -> Result<EmailMailboxCapabilities>
pub fn ChangeTracker(&self) -> Result<EmailMailboxChangeTracker>
pub fn DisplayName(&self) -> Result<HSTRING>
pub fn SetDisplayName(&self, value: &HSTRING) -> Result<()>
pub fn Id(&self) -> Result<HSTRING>
pub fn IsOwnedByCurrentApp(&self) -> Result<bool>
pub fn IsDataEncryptedUnderLock(&self) -> Result<bool>
pub fn MailAddress(&self) -> Result<HSTRING>
pub fn SetMailAddress(&self, value: &HSTRING) -> Result<()>
pub fn MailAddressAliases(&self) -> Result<IVector<HSTRING>>
pub fn OtherAppReadAccess(&self) -> Result<EmailMailboxOtherAppReadAccess>
pub fn SetOtherAppReadAccess( &self, value: EmailMailboxOtherAppReadAccess, ) -> Result<()>
pub fn OtherAppWriteAccess(&self) -> Result<EmailMailboxOtherAppWriteAccess>
pub fn SetOtherAppWriteAccess( &self, value: EmailMailboxOtherAppWriteAccess, ) -> Result<()>
pub fn Policies(&self) -> Result<EmailMailboxPolicies>
pub fn SourceDisplayName(&self) -> Result<HSTRING>
pub fn SyncManager(&self) -> Result<EmailMailboxSyncManager>
pub fn UserDataAccountId(&self) -> Result<HSTRING>
pub fn GetConversationReader(&self) -> Result<EmailConversationReader>
pub fn GetConversationReaderWithOptions<P0>(
&self,
options: P0,
) -> Result<EmailConversationReader>where
P0: Param<EmailQueryOptions>,
pub fn GetMessageReader(&self) -> Result<EmailMessageReader>
pub fn GetMessageReaderWithOptions<P0>(
&self,
options: P0,
) -> Result<EmailMessageReader>where
P0: Param<EmailQueryOptions>,
pub fn DeleteAsync(&self) -> Result<IAsyncAction>
pub fn GetConversationAsync( &self, id: &HSTRING, ) -> Result<IAsyncOperation<EmailConversation>>
pub fn GetFolderAsync( &self, id: &HSTRING, ) -> Result<IAsyncOperation<EmailFolder>>
pub fn GetMessageAsync( &self, id: &HSTRING, ) -> Result<IAsyncOperation<EmailMessage>>
pub fn GetSpecialFolderAsync( &self, foldertype: EmailSpecialFolderKind, ) -> Result<IAsyncOperation<EmailFolder>>
pub fn SaveAsync(&self) -> Result<IAsyncAction>
pub fn MarkMessageAsSeenAsync( &self, messageid: &HSTRING, ) -> Result<IAsyncAction>
pub fn MarkFolderAsSeenAsync(&self, folderid: &HSTRING) -> Result<IAsyncAction>
pub fn MarkMessageReadAsync( &self, messageid: &HSTRING, isread: bool, ) -> Result<IAsyncAction>
pub fn ChangeMessageFlagStateAsync( &self, messageid: &HSTRING, flagstate: EmailFlagState, ) -> Result<IAsyncAction>
pub fn TryMoveMessageAsync( &self, messageid: &HSTRING, newparentfolderid: &HSTRING, ) -> Result<IAsyncOperation<bool>>
pub fn TryMoveFolderAsync( &self, folderid: &HSTRING, newparentfolderid: &HSTRING, ) -> Result<IAsyncOperation<bool>>
pub fn TryMoveFolderWithNewNameAsync( &self, folderid: &HSTRING, newparentfolderid: &HSTRING, newfoldername: &HSTRING, ) -> Result<IAsyncOperation<bool>>
pub fn DeleteMessageAsync(&self, messageid: &HSTRING) -> Result<IAsyncAction>
pub fn MarkFolderSyncEnabledAsync( &self, folderid: &HSTRING, issyncenabled: bool, ) -> Result<IAsyncAction>
pub fn SendMessageAsync<P0>(&self, message: P0) -> Result<IAsyncAction>where
P0: Param<EmailMessage>,
pub fn SaveDraftAsync<P0>(&self, message: P0) -> Result<IAsyncAction>where
P0: Param<EmailMessage>,
pub fn DownloadMessageAsync(&self, messageid: &HSTRING) -> Result<IAsyncAction>
pub fn DownloadAttachmentAsync( &self, attachmentid: &HSTRING, ) -> Result<IAsyncAction>
pub fn CreateResponseMessageAsync( &self, messageid: &HSTRING, responsetype: EmailMessageResponseKind, subject: &HSTRING, responseheadertype: EmailMessageBodyKind, responseheader: &HSTRING, ) -> Result<IAsyncOperation<EmailMessage>>
pub fn TryUpdateMeetingResponseAsync<P0>(
&self,
meeting: P0,
response: EmailMeetingResponseType,
subject: &HSTRING,
comment: &HSTRING,
sendupdate: bool,
) -> Result<IAsyncOperation<bool>>where
P0: Param<EmailMessage>,
pub fn TryForwardMeetingAsync<P0, P1>( &self, meeting: P0, recipients: P1, subject: &HSTRING, forwardheadertype: EmailMessageBodyKind, forwardheader: &HSTRING, comment: &HSTRING, ) -> Result<IAsyncOperation<bool>>
pub fn TryProposeNewTimeForMeetingAsync<P0>(
&self,
meeting: P0,
newstarttime: DateTime,
newduration: TimeSpan,
subject: &HSTRING,
comment: &HSTRING,
) -> Result<IAsyncOperation<bool>>where
P0: Param<EmailMessage>,
pub fn MailboxChanged<P0>(&self, phandler: P0) -> Result<EventRegistrationToken>
pub fn RemoveMailboxChanged(&self, token: EventRegistrationToken) -> Result<()>
pub fn SmartSendMessageAsync<P0>(
&self,
message: P0,
smartsend: bool,
) -> Result<IAsyncAction>where
P0: Param<EmailMessage>,
pub fn TrySetAutoReplySettingsAsync<P0>(
&self,
autoreplysettings: P0,
) -> Result<IAsyncOperation<bool>>where
P0: Param<EmailMailboxAutoReplySettings>,
pub fn TryGetAutoReplySettingsAsync( &self, requestedformat: EmailMailboxAutoReplyMessageResponseKind, ) -> Result<IAsyncOperation<EmailMailboxAutoReplySettings>>
pub fn LinkedMailboxId(&self) -> Result<HSTRING>
pub fn NetworkAccountId(&self) -> Result<HSTRING>
pub fn NetworkId(&self) -> Result<HSTRING>
pub fn ResolveRecipientsAsync<P0>(
&self,
recipients: P0,
) -> Result<IAsyncOperation<IVectorView<EmailRecipientResolutionResult>>>where
P0: Param<IIterable<HSTRING>>,
pub fn ValidateCertificatesAsync<P0>(
&self,
certificates: P0,
) -> Result<IAsyncOperation<IVectorView<EmailCertificateValidationStatus>>>where
P0: Param<IIterable<Certificate>>,
pub fn TryEmptyFolderAsync( &self, folderid: &HSTRING, ) -> Result<IAsyncOperation<EmailMailboxEmptyFolderStatus>>
pub fn TryCreateFolderAsync( &self, parentfolderid: &HSTRING, name: &HSTRING, ) -> Result<IAsyncOperation<EmailMailboxCreateFolderResult>>
pub fn TryDeleteFolderAsync( &self, folderid: &HSTRING, ) -> Result<IAsyncOperation<EmailMailboxDeleteFolderStatus>>
pub fn RegisterSyncManagerAsync(&self) -> Result<IAsyncAction>
pub fn GetChangeTracker( &self, identity: &HSTRING, ) -> Result<EmailMailboxChangeTracker>
Trait Implementations§
§impl CanInto<IInspectable> for EmailMailbox
impl CanInto<IInspectable> for EmailMailbox
§impl CanInto<IUnknown> for EmailMailbox
impl CanInto<IUnknown> for EmailMailbox
§impl Clone for EmailMailbox
impl Clone for EmailMailbox
§fn clone(&self) -> EmailMailbox
fn clone(&self) -> EmailMailbox
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 EmailMailbox
impl Debug for EmailMailbox
§impl From<&EmailMailbox> for &IInspectable
impl From<&EmailMailbox> for &IInspectable
§fn from(value: &EmailMailbox) -> Self
fn from(value: &EmailMailbox) -> Self
Converts to this type from the input type.
§impl From<&EmailMailbox> for &IUnknown
impl From<&EmailMailbox> for &IUnknown
§fn from(value: &EmailMailbox) -> Self
fn from(value: &EmailMailbox) -> Self
Converts to this type from the input type.
§impl From<EmailMailbox> for IInspectable
impl From<EmailMailbox> for IInspectable
§fn from(value: EmailMailbox) -> Self
fn from(value: EmailMailbox) -> Self
Converts to this type from the input type.
§impl From<EmailMailbox> for IUnknown
impl From<EmailMailbox> for IUnknown
§fn from(value: EmailMailbox) -> Self
fn from(value: EmailMailbox) -> Self
Converts to this type from the input type.
§impl Interface for EmailMailbox
impl Interface for EmailMailbox
§const IID: GUID = <IEmailMailbox as windows_core::Interface>::IID
const IID: GUID = <IEmailMailbox as windows_core::Interface>::IID
The
GUID
associated with the interface.§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§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for EmailMailbox
impl PartialEq for EmailMailbox
§fn eq(&self, other: &EmailMailbox) -> bool
fn eq(&self, other: &EmailMailbox) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for EmailMailbox
impl Send for EmailMailbox
impl StructuralPartialEq for EmailMailbox
impl Sync for EmailMailbox
Auto Trait Implementations§
impl Freeze for EmailMailbox
impl RefUnwindSafe for EmailMailbox
impl Unpin for EmailMailbox
impl UnwindSafe for EmailMailbox
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)