pub struct EmailMailbox(/* private fields */);

Implementations§

§

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: IntoParam<EmailQueryOptions>,

pub fn GetMessageReader(&self) -> Result<EmailMessageReader>

pub fn GetMessageReaderWithOptions<P0>( &self, options: P0 ) -> Result<EmailMessageReader>
where P0: IntoParam<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: IntoParam<EmailMessage>,

pub fn SaveDraftAsync<P0>(&self, message: P0) -> Result<IAsyncAction>
where P0: IntoParam<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: IntoParam<EmailMessage>,

pub fn TryForwardMeetingAsync<P0, P1>( &self, meeting: P0, recipients: P1, subject: &HSTRING, forwardheadertype: EmailMessageBodyKind, forwardheader: &HSTRING, comment: &HSTRING ) -> Result<IAsyncOperation<bool>>
where P0: IntoParam<EmailMessage>, P1: IntoParam<IIterable<EmailRecipient>>,

pub fn TryProposeNewTimeForMeetingAsync<P0>( &self, meeting: P0, newstarttime: DateTime, newduration: TimeSpan, subject: &HSTRING, comment: &HSTRING ) -> Result<IAsyncOperation<bool>>
where P0: IntoParam<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: IntoParam<EmailMessage>,

pub fn TrySetAutoReplySettingsAsync<P0>( &self, autoreplysettings: P0 ) -> Result<IAsyncOperation<bool>>
where P0: IntoParam<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: IntoParam<IIterable<HSTRING>>,

pub fn ValidateCertificatesAsync<P0>( &self, certificates: P0 ) -> Result<IAsyncOperation<IVectorView<EmailCertificateValidationStatus>>>
where P0: IntoParam<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 Clone for EmailMailbox

§

fn clone(&self) -> EmailMailbox

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for EmailMailbox

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl From<&EmailMailbox> for &IInspectable

§

fn from(value: &EmailMailbox) -> Self

Converts to this type from the input type.
§

impl From<&EmailMailbox> for &IUnknown

§

fn from(value: &EmailMailbox) -> Self

Converts to this type from the input type.
§

impl From<EmailMailbox> for IInspectable

§

fn from(value: EmailMailbox) -> Self

Converts to this type from the input type.
§

impl From<EmailMailbox> for IUnknown

§

fn from(value: EmailMailbox) -> Self

Converts to this type from the input type.
§

impl Interface for EmailMailbox

§

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

Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§

unsafe fn from_raw(raw: *mut c_void) -> Self

Creates an Interface by taking ownership of the raw COM interface pointer. Read more
§

unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>

Creates an Interface that is valid so long as the raw COM interface pointer is valid. Read more
§

fn cast<T>(&self) -> Result<T, Error>
where T: Interface,

Attempts to cast the current interface to another interface using QueryInterface. Read more
§

fn downgrade(&self) -> Result<Weak<Self>, Error>

Attempts to create a Weak reference to this object.
§

unsafe fn query(&self, iid: *const GUID, interface: *mut *mut c_void) -> HRESULT

Call QueryInterface on this interface Read more
§

impl PartialEq for EmailMailbox

§

fn eq(&self, other: &EmailMailbox) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Eq for EmailMailbox

§

impl Send for EmailMailbox

§

impl StructuralPartialEq for EmailMailbox

§

impl Sync for EmailMailbox

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.