Struct vomit_sync::SyncOptions
source · pub struct SyncOptions {
pub local: String,
pub remote: String,
pub user: String,
pub password: String,
pub threads: u8,
pub unsafe_tls: bool,
pub include: Vec<String>,
pub exclude: Vec<String>,
}Expand description
A set of options to control the synchronization process
Fields
local: StringThe local maildir to sync to
remote: StringThe IMAPS URL to sync from
user: StringThe user for IMAP authentication
password: StringThe password for IMAP authentication
threads: u8The number of threads to use
Each thread will use it’s own IMAP session, so this must not be greater than the number of concurrent user sessions allowed by the IMAP server.
unsafe_tls: boolDisable TLS certificate checks (e.g. for self-signed certs)
include: Vec<String>A list of wildcard patterns to include only folders that match any of them.
The wildcard pattern only supports ? and * and must match the full mailbox name.
exclude: Vec<String>A list of wildcard patterns to exclude all folders that match any of them.
The wildcard pattern only supports ? and * and must match the full mailbox name.
If used together with include and both match, exclude takes precedence.
Trait Implementations
sourceimpl Clone for SyncOptions
impl Clone for SyncOptions
sourcefn clone(&self) -> SyncOptions
fn clone(&self) -> SyncOptions
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more