logo

Struct sq::Config

source · []
pub struct Config<'a> {
    pub(crate) force: bool,
    pub(crate) output_format: OutputFormat,
    pub(crate) output_version: Option<OutputVersion>,
    pub(crate) policy: P<'a>,
    pub(crate) unstable_cli_warning_emitted: bool,
}

Fields

force: booloutput_format: OutputFormatoutput_version: Option<OutputVersion>policy: P<'a>unstable_cli_warning_emitted: bool

Have we emitted the warning yet?

Implementations

Opens the file (or stdout) for writing data that is safe for non-interactive use.

This is suitable for any kind of OpenPGP data, or decrypted or authenticated payloads.

Opens the file (or stdout) for writing data that is NOT safe for non-interactive use.

If our heuristic detects non-interactive use, we will emit a warning.

Opens the file (or stdout) for writing data that is safe for non-interactive use because it is an OpenPGP data stream.

Helper function, do not use directly. Instead, use create_or_stdout_safe or create_or_stdout_unsafe.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more