pub struct EnvVariable<'a> {
pub key: Cow<'a, str>,
pub value: Cow<'a, str>,
pub preceding_comments: Vec<EnvComment<'a>>,
pub inline_comment: Option<EnvComment<'a>>,
}
Expand description
Represents an environment variable with its value and associated comments.
Fields§
§key: Cow<'a, str>
The variable name
value: Cow<'a, str>
The variable value
preceding_comments: Vec<EnvComment<'a>>
Comments that appear before this variable
inline_comment: Option<EnvComment<'a>>
Comment that appears on the same line as the variable
Trait Implementations§
Source§impl<'a> Clone for EnvVariable<'a>
impl<'a> Clone for EnvVariable<'a>
Source§fn clone(&self) -> EnvVariable<'a>
fn clone(&self) -> EnvVariable<'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 EnvVariable<'a>
impl<'a> Debug for EnvVariable<'a>
Source§impl<'a> Display for EnvVariable<'a>
impl<'a> Display for EnvVariable<'a>
Source§impl<'a> PartialEq for EnvVariable<'a>
impl<'a> PartialEq for EnvVariable<'a>
Source§impl<'a> TryFrom<&'a str> for EnvVariable<'a>
impl<'a> TryFrom<&'a str> for EnvVariable<'a>
impl<'a> StructuralPartialEq for EnvVariable<'a>
Auto Trait Implementations§
impl<'a> Freeze for EnvVariable<'a>
impl<'a> RefUnwindSafe for EnvVariable<'a>
impl<'a> Send for EnvVariable<'a>
impl<'a> Sync for EnvVariable<'a>
impl<'a> Unpin for EnvVariable<'a>
impl<'a> UnwindSafe for EnvVariable<'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