pub enum AddKind {
Email {
email: String,
alias: Option<String>,
provider: Option<Provider>,
host: Option<String>,
port: Option<u16>,
security: Option<ImapSecurity>,
},
Bucket {
alias: Option<String>,
},
}Variants§
Authenticate an email identity and register it under a local alias
Fields
alias: Option<String>Local alias to store this identity under (e.g. first-last). Defaults to a sanitized form of the email’s local part.
provider: Option<Provider>Email provider. Auto-detected from the email’s domain when omitted, falling back to an interactive prompt if detection fails.
host: Option<String>IMAP host, e.g. imap.example.com. Required when –provider is “custom” (or resolves to it); defaults to the provider’s own host otherwise (127.0.0.1 for proton’s local Bridge).
port: Option<u16>IMAP port. Defaults to the provider’s own port (1143 for proton’s Bridge), or 993 for a custom provider. Set it for a Bridge configured to listen elsewhere.
security: Option<ImapSecurity>How the connection is secured: “tls” (implicit, port 993) or “starttls” (plaintext greeting, then STARTTLS). Defaults to starttls for proton’s Bridge and for a custom server on port 143, tls otherwise. Set “tls” for a Bridge switched to SSL mode. There is no plaintext option (CLI-0162).
Bucket
Interactively configure a new S3-compatible bucket-config
Trait Implementations§
Source§impl FromArgMatches for AddKind
impl FromArgMatches for AddKind
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for AddKind
impl Subcommand for AddKind
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for AddKind
impl RefUnwindSafe for AddKind
impl Send for AddKind
impl Sync for AddKind
impl Unpin for AddKind
impl UnsafeUnpin for AddKind
impl UnwindSafe for AddKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
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