[][src]Struct enqueuemail::Options

pub struct Options {
    pub url: Option<String>,
    pub clipboard: bool,
    pub host: Option<String>,
    pub port: u16,
    pub scheme: String,
    pub path: String,
    pub query: Option<String>,
    pub fragment: Option<String>,
    pub domain: Option<String>,
    pub cafile: Option<PathBuf>,
    pub run: bool,
}

Options contains the CLI available options offered to the binary tool.

This struct maps all the options that are available to the CLI user. of the binary enqueue-email.

Fields

url: Option<String>

The URL to bookmark and enqueue. This excludes scheme, host, port and domain. This option has the priority over the Clipboard.

clipboard: bool

Use the URL currently on the top of the Clipboard. This option disables all the other defined options.

host: Option<String>

The host to connect to.

port: u16

The port to connect to.

scheme: String

The scheme protocol of the URI.

path: String

The path component in the URI. This follows the definitions of RFC2396 and RFC3986 (https://en.wikipedia.org/wiki/Uniform_Resource_Identifier).

query: Option<String>

An optional query component preceded by a question mark (?), containing a query string of non-hierarchical data.

fragment: Option<String>

An optional fragment component preceded by a hash (#).

domain: Option<String>

The domain to connect to. This may be different from the host!

cafile: Option<PathBuf>

A file with a certificate authority chain, allows to connect to certificate authories not included in the default set.

run: bool

Run msmt-queue and flush all mail currently in queue. This wraps the command 'msmtp-queue -r'.

Trait Implementations

impl Debug for Options[src]

impl StructOpt for Options[src]

impl StructOptInternal for Options[src]

impl<'_> TryFrom<&'_ Options> for Parts[src]

type Error = Box<dyn Error>

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Options

impl Send for Options

impl Sync for Options

impl Unpin for Options

impl UnwindSafe for Options

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,