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

Implementations§

§

impl DeviceAccountConfiguration

pub fn new() -> Result<Self>

pub fn AccountName(&self) -> Result<HSTRING>

pub fn SetAccountName(&self, value: &HSTRING) -> Result<()>

pub fn DeviceAccountTypeId(&self) -> Result<HSTRING>

pub fn SetDeviceAccountTypeId(&self, value: &HSTRING) -> Result<()>

pub fn ServerType(&self) -> Result<DeviceAccountServerType>

pub fn SetServerType(&self, value: DeviceAccountServerType) -> Result<()>

pub fn EmailAddress(&self) -> Result<HSTRING>

pub fn SetEmailAddress(&self, value: &HSTRING) -> Result<()>

pub fn Domain(&self) -> Result<HSTRING>

pub fn SetDomain(&self, value: &HSTRING) -> Result<()>

pub fn EmailSyncEnabled(&self) -> Result<bool>

pub fn SetEmailSyncEnabled(&self, value: bool) -> Result<()>

pub fn ContactsSyncEnabled(&self) -> Result<bool>

pub fn SetContactsSyncEnabled(&self, value: bool) -> Result<()>

pub fn CalendarSyncEnabled(&self) -> Result<bool>

pub fn SetCalendarSyncEnabled(&self, value: bool) -> Result<()>

pub fn IncomingServerAddress(&self) -> Result<HSTRING>

pub fn SetIncomingServerAddress(&self, value: &HSTRING) -> Result<()>

pub fn IncomingServerPort(&self) -> Result<i32>

pub fn SetIncomingServerPort(&self, value: i32) -> Result<()>

pub fn IncomingServerRequiresSsl(&self) -> Result<bool>

pub fn SetIncomingServerRequiresSsl(&self, value: bool) -> Result<()>

pub fn IncomingServerUsername(&self) -> Result<HSTRING>

pub fn SetIncomingServerUsername(&self, value: &HSTRING) -> Result<()>

pub fn OutgoingServerAddress(&self) -> Result<HSTRING>

pub fn SetOutgoingServerAddress(&self, value: &HSTRING) -> Result<()>

pub fn OutgoingServerPort(&self) -> Result<i32>

pub fn SetOutgoingServerPort(&self, value: i32) -> Result<()>

pub fn OutgoingServerRequiresSsl(&self) -> Result<bool>

pub fn SetOutgoingServerRequiresSsl(&self, value: bool) -> Result<()>

pub fn OutgoingServerUsername(&self) -> Result<HSTRING>

pub fn SetOutgoingServerUsername(&self, value: &HSTRING) -> Result<()>

pub fn IncomingServerCredential(&self) -> Result<PasswordCredential>

pub fn SetIncomingServerCredential<P0>(&self, value: P0) -> Result<()>
where P0: IntoParam<PasswordCredential>,

pub fn OutgoingServerCredential(&self) -> Result<PasswordCredential>

pub fn SetOutgoingServerCredential<P0>(&self, value: P0) -> Result<()>
where P0: IntoParam<PasswordCredential>,

pub fn OAuthRefreshToken(&self) -> Result<HSTRING>

pub fn SetOAuthRefreshToken(&self, value: &HSTRING) -> Result<()>

pub fn IsExternallyManaged(&self) -> Result<bool>

pub fn SetIsExternallyManaged(&self, value: bool) -> Result<()>

pub fn AccountIconId(&self) -> Result<DeviceAccountIconId>

pub fn SetAccountIconId(&self, value: DeviceAccountIconId) -> Result<()>

pub fn AuthenticationType(&self) -> Result<DeviceAccountAuthenticationType>

pub fn SetAuthenticationType( &self, value: DeviceAccountAuthenticationType ) -> Result<()>

pub fn IsSsoAuthenticationSupported(&self) -> Result<bool>

pub fn SsoAccountId(&self) -> Result<HSTRING>

pub fn SetSsoAccountId(&self, value: &HSTRING) -> Result<()>

pub fn AlwaysDownloadFullMessage(&self) -> Result<bool>

pub fn SetAlwaysDownloadFullMessage(&self, value: bool) -> Result<()>

pub fn DoesPolicyAllowMailSync(&self) -> Result<bool>

pub fn SyncScheduleKind(&self) -> Result<DeviceAccountSyncScheduleKind>

pub fn SetSyncScheduleKind( &self, value: DeviceAccountSyncScheduleKind ) -> Result<()>

pub fn MailAgeFilter(&self) -> Result<DeviceAccountMailAgeFilter>

pub fn SetMailAgeFilter(&self, value: DeviceAccountMailAgeFilter) -> Result<()>

pub fn IsClientAuthenticationCertificateRequired(&self) -> Result<bool>

pub fn SetIsClientAuthenticationCertificateRequired( &self, value: bool ) -> Result<()>

pub fn AutoSelectAuthenticationCertificate(&self) -> Result<bool>

pub fn SetAutoSelectAuthenticationCertificate(&self, value: bool) -> Result<()>

pub fn AuthenticationCertificateId(&self) -> Result<HSTRING>

pub fn SetAuthenticationCertificateId(&self, value: &HSTRING) -> Result<()>

pub fn CardDavSyncScheduleKind(&self) -> Result<DeviceAccountSyncScheduleKind>

pub fn SetCardDavSyncScheduleKind( &self, value: DeviceAccountSyncScheduleKind ) -> Result<()>

pub fn CalDavSyncScheduleKind(&self) -> Result<DeviceAccountSyncScheduleKind>

pub fn SetCalDavSyncScheduleKind( &self, value: DeviceAccountSyncScheduleKind ) -> Result<()>

pub fn CardDavServerUrl(&self) -> Result<Uri>

pub fn SetCardDavServerUrl<P0>(&self, value: P0) -> Result<()>
where P0: IntoParam<Uri>,

pub fn CardDavRequiresSsl(&self) -> Result<bool>

pub fn SetCardDavRequiresSsl(&self, value: bool) -> Result<()>

pub fn CalDavServerUrl(&self) -> Result<Uri>

pub fn SetCalDavServerUrl<P0>(&self, value: P0) -> Result<()>
where P0: IntoParam<Uri>,

pub fn CalDavRequiresSsl(&self) -> Result<bool>

pub fn SetCalDavRequiresSsl(&self, value: bool) -> Result<()>

pub fn WasModifiedByUser(&self) -> Result<bool>

pub fn SetWasModifiedByUser(&self, value: bool) -> Result<()>

pub fn WasIncomingServerCertificateHashConfirmed(&self) -> Result<bool>

pub fn SetWasIncomingServerCertificateHashConfirmed( &self, value: bool ) -> Result<()>

pub fn IncomingServerCertificateHash(&self) -> Result<HSTRING>

pub fn SetIncomingServerCertificateHash(&self, value: &HSTRING) -> Result<()>

pub fn IsOutgoingServerAuthenticationRequired(&self) -> Result<bool>

pub fn SetIsOutgoingServerAuthenticationRequired( &self, value: bool ) -> Result<()>

pub fn IsOutgoingServerAuthenticationEnabled(&self) -> Result<bool>

pub fn SetIsOutgoingServerAuthenticationEnabled( &self, value: bool ) -> Result<()>

pub fn WasOutgoingServerCertificateHashConfirmed(&self) -> Result<bool>

pub fn SetWasOutgoingServerCertificateHashConfirmed( &self, value: bool ) -> Result<()>

pub fn OutgoingServerCertificateHash(&self) -> Result<HSTRING>

pub fn SetOutgoingServerCertificateHash(&self, value: &HSTRING) -> Result<()>

pub fn IsSyncScheduleManagedBySystem(&self) -> Result<bool>

pub fn SetIsSyncScheduleManagedBySystem(&self, value: bool) -> Result<()>

Trait Implementations§

§

impl Clone for DeviceAccountConfiguration

§

fn clone(&self) -> DeviceAccountConfiguration

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 DeviceAccountConfiguration

§

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

Formats the value using the given formatter. Read more
§

impl From<&DeviceAccountConfiguration> for &IInspectable

§

fn from(value: &DeviceAccountConfiguration) -> Self

Converts to this type from the input type.
§

impl From<&DeviceAccountConfiguration> for &IUnknown

§

fn from(value: &DeviceAccountConfiguration) -> Self

Converts to this type from the input type.
§

impl From<DeviceAccountConfiguration> for IInspectable

§

fn from(value: DeviceAccountConfiguration) -> Self

Converts to this type from the input type.
§

impl From<DeviceAccountConfiguration> for IUnknown

§

fn from(value: DeviceAccountConfiguration) -> Self

Converts to this type from the input type.
§

impl Interface for DeviceAccountConfiguration

§

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 DeviceAccountConfiguration

§

fn eq(&self, other: &DeviceAccountConfiguration) -> 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 DeviceAccountConfiguration

§

impl Send for DeviceAccountConfiguration

§

impl StructuralPartialEq for DeviceAccountConfiguration

§

impl Sync for DeviceAccountConfiguration

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.