pub struct GenerateOptions<'a> {
pub encrypt_secrets: bool,
pub secret_store_dir: Option<&'a Path>,
}Expand description
Options for generate.
Fields§
§encrypt_secrets: boolEncrypt secret-bearing string values in the output. Works at every
schema version via encrypt_secret_strings, which walks the TOML
and ChaCha20-Poly1305-encrypts any leaf whose key name appears in
[SECRET_KEY_NAMES].
secret_store_dir: Option<&'a Path>Directory containing (or to receive) the .secret_key used for
enc2: encryption. Required when encrypt_secrets is true. The
key is created with 0o600 permissions if absent — matches how the
daemon’s SecretStore behaves on first use.
Trait Implementations§
Source§impl<'a> Clone for GenerateOptions<'a>
impl<'a> Clone for GenerateOptions<'a>
Source§fn clone(&self) -> GenerateOptions<'a>
fn clone(&self) -> GenerateOptions<'a>
Returns a duplicate 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<'a> Debug for GenerateOptions<'a>
impl<'a> Debug for GenerateOptions<'a>
Source§impl<'a> Default for GenerateOptions<'a>
impl<'a> Default for GenerateOptions<'a>
Source§fn default() -> GenerateOptions<'a>
fn default() -> GenerateOptions<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for GenerateOptions<'a>
impl<'a> RefUnwindSafe for GenerateOptions<'a>
impl<'a> Send for GenerateOptions<'a>
impl<'a> Sync for GenerateOptions<'a>
impl<'a> Unpin for GenerateOptions<'a>
impl<'a> UnsafeUnpin for GenerateOptions<'a>
impl<'a> UnwindSafe for GenerateOptions<'a>
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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