pub struct SecretsSection {
pub allow_read: bool,
}Expand description
The [secrets] section: whether the CLI will print a stored value back.
One key, a gate rather than a tuning knob, for WhistleSection’s
reason and read the same way: shep secret get reads this file itself,
the shepherd never reads this key, and it is declared here so an
undeclared [secrets] section is not a refused boot.
Debug is derived rather than redacted: one boolean, no secret.
Fields§
§allow_read: boolWhether shep secret get prints a value. Default false.
Trait Implementations§
Source§impl Clone for SecretsSection
impl Clone for SecretsSection
Source§fn clone(&self) -> SecretsSection
fn clone(&self) -> SecretsSection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SecretsSection
impl Debug for SecretsSection
Source§impl Default for SecretsSection
impl Default for SecretsSection
Source§fn default() -> SecretsSection
fn default() -> SecretsSection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SecretsSectionwhere
SecretsSection: Default,
impl<'de> Deserialize<'de> for SecretsSectionwhere
SecretsSection: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SecretsSection
Source§impl PartialEq for SecretsSection
impl PartialEq for SecretsSection
impl StructuralPartialEq for SecretsSection
Auto Trait Implementations§
impl Freeze for SecretsSection
impl RefUnwindSafe for SecretsSection
impl Send for SecretsSection
impl Sync for SecretsSection
impl Unpin for SecretsSection
impl UnsafeUnpin for SecretsSection
impl UnwindSafe for SecretsSection
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.