pub struct EmailProvider {
pub id: String,
pub properties: Vec<EmailProviderProperty>,
}
Fields§
§id: String
§properties: Vec<EmailProviderProperty>
Implementations§
Source§impl EmailProvider
impl EmailProvider
Sourcepub fn properties(&self) -> &Vec<EmailProviderProperty>
pub fn properties(&self) -> &Vec<EmailProviderProperty>
Just an array containing all of the email providers properties, usefull if you want to get multiple properties in 1 for loop.
Sourcepub fn domain(&self) -> Vec<&str>
pub fn domain(&self) -> Vec<&str>
The domain name that the email provider uses in their email addresses.
Sourcepub fn display_name(&self) -> Option<&str>
pub fn display_name(&self) -> Option<&str>
The email providers display name. e.g. Google Mail
Sourcepub fn display_short_name(&self) -> Option<&str>
pub fn display_short_name(&self) -> Option<&str>
The email providers short display name. e.g. GMail
Sourcepub fn incoming_servers(&self) -> Vec<&Server>
pub fn incoming_servers(&self) -> Vec<&Server>
An array containing info about all of an email providers incoming mail servers
Sourcepub fn outgoing_servers(&self) -> Vec<&Server>
pub fn outgoing_servers(&self) -> Vec<&Server>
An array containing info about all of an email providers outgoing mail servers
Sourcepub fn servers(&self) -> Vec<&Server>
pub fn servers(&self) -> Vec<&Server>
An array containing info about all of an email providers mail servers
Sourcepub fn documentation(&self) -> Option<&Documentation>
pub fn documentation(&self) -> Option<&Documentation>
Documentation on how to setup the email client, provided by the email provider.
Trait Implementations§
Source§impl Debug for EmailProvider
impl Debug for EmailProvider
Source§impl<'de> Deserialize<'de> for EmailProvider
impl<'de> Deserialize<'de> for EmailProvider
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EmailProvider
impl RefUnwindSafe for EmailProvider
impl Send for EmailProvider
impl Sync for EmailProvider
impl Unpin for EmailProvider
impl UnwindSafe for EmailProvider
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more