pub struct EnvSection {
pub allow: Option<Vec<String>>,
pub deny: Option<Vec<String>>,
}Expand description
The [env] table in tak.toml.
Both fields are Option so an absent key defers to the environment and the
declared default, while deny = [] is an explicit empty list. Making them
plain Vec would erase that distinction and turn “I did not mention this”
into “I want nothing scrubbed”.
Fields§
§allow: Option<Vec<String>>§deny: Option<Vec<String>>Trait Implementations§
Source§impl Clone for EnvSection
impl Clone for EnvSection
Source§fn clone(&self) -> EnvSection
fn clone(&self) -> EnvSection
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 EnvSection
impl Debug for EnvSection
Source§impl Default for EnvSection
impl Default for EnvSection
Source§fn default() -> EnvSection
fn default() -> EnvSection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EnvSection
impl<'de> Deserialize<'de> for EnvSection
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 EnvSection
Source§impl PartialEq for EnvSection
impl PartialEq for EnvSection
impl StructuralPartialEq for EnvSection
Auto Trait Implementations§
impl Freeze for EnvSection
impl RefUnwindSafe for EnvSection
impl Send for EnvSection
impl Sync for EnvSection
impl Unpin for EnvSection
impl UnsafeUnpin for EnvSection
impl UnwindSafe for EnvSection
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