Struct deltachat::login_param::LoginParam
source · pub struct LoginParam {
pub addr: String,
pub imap: ServerLoginParam,
pub smtp: ServerLoginParam,
pub provider: Option<&'static Provider>,
pub socks5_config: Option<Socks5Config>,
}
Fields§
§addr: String
§imap: ServerLoginParam
§smtp: ServerLoginParam
§provider: Option<&'static Provider>
§socks5_config: Option<Socks5Config>
Implementations§
source§impl LoginParam
impl LoginParam
sourcepub async fn load_candidate_params(context: &Context) -> Result<Self>
pub async fn load_candidate_params(context: &Context) -> Result<Self>
Load entered (candidate) account settings
sourcepub async fn load_candidate_params_unchecked(context: &Context) -> Result<Self>
pub async fn load_candidate_params_unchecked(context: &Context) -> Result<Self>
Load entered (candidate) account settings without validation.
This will result in a potentially invalid LoginParam
struct as the values are
not validated. Only use this if you want to show this directly to the user e.g. in
Context::get_info
.
sourcepub async fn load_configured_params(context: &Context) -> Result<Self>
pub async fn load_configured_params(context: &Context) -> Result<Self>
Load configured (working) account settings
sourceasync fn from_database(context: &Context, prefix: &str) -> Result<Self>
async fn from_database(context: &Context, prefix: &str) -> Result<Self>
Read the login parameters from the database.
sourcepub async fn save_as_configured_params(&self, context: &Context) -> Result<()>
pub async fn save_as_configured_params(&self, context: &Context) -> Result<()>
Save this loginparam to the database.
Trait Implementations§
source§impl Clone for LoginParam
impl Clone for LoginParam
source§fn clone(&self) -> LoginParam
fn clone(&self) -> LoginParam
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 moresource§impl Debug for LoginParam
impl Debug for LoginParam
source§impl Default for LoginParam
impl Default for LoginParam
source§fn default() -> LoginParam
fn default() -> LoginParam
Returns the “default value” for a type. Read more
source§impl Display for LoginParam
impl Display for LoginParam
source§impl PartialEq for LoginParam
impl PartialEq for LoginParam
source§fn eq(&self, other: &LoginParam) -> bool
fn eq(&self, other: &LoginParam) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for LoginParam
impl StructuralPartialEq for LoginParam
Auto Trait Implementations§
impl RefUnwindSafe for LoginParam
impl Send for LoginParam
impl Sync for LoginParam
impl Unpin for LoginParam
impl UnwindSafe for LoginParam
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.