Struct EnvVarValue
pub struct EnvVarValue { /* private fields */ }Expand description
An owned environment variable value.
Implementations§
§impl EnvVarValue
impl EnvVarValue
pub fn new(value: impl Into<String>) -> EnvVarValue
pub fn new(value: impl Into<String>) -> EnvVarValue
Creates an owned environment variable value.
pub fn into_string(self) -> String
pub fn into_string(self) -> String
Returns the owned value.
Trait Implementations§
§impl AsRef<str> for EnvVarValue
impl AsRef<str> for EnvVarValue
§impl Clone for EnvVarValue
impl Clone for EnvVarValue
§fn clone(&self) -> EnvVarValue
fn clone(&self) -> EnvVarValue
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 more§impl Debug for EnvVarValue
impl Debug for EnvVarValue
§impl Default for EnvVarValue
impl Default for EnvVarValue
§fn default() -> EnvVarValue
fn default() -> EnvVarValue
Returns the “default value” for a type. Read more
§impl Display for EnvVarValue
impl Display for EnvVarValue
§impl From<&str> for EnvVarValue
impl From<&str> for EnvVarValue
§fn from(value: &str) -> EnvVarValue
fn from(value: &str) -> EnvVarValue
Converts to this type from the input type.
§impl From<String> for EnvVarValue
impl From<String> for EnvVarValue
§fn from(value: String) -> EnvVarValue
fn from(value: String) -> EnvVarValue
Converts to this type from the input type.
§impl Hash for EnvVarValue
impl Hash for EnvVarValue
§impl PartialEq for EnvVarValue
impl PartialEq for EnvVarValue
impl Eq for EnvVarValue
impl StructuralPartialEq for EnvVarValue
Auto Trait Implementations§
impl Freeze for EnvVarValue
impl RefUnwindSafe for EnvVarValue
impl Send for EnvVarValue
impl Sync for EnvVarValue
impl Unpin for EnvVarValue
impl UnsafeUnpin for EnvVarValue
impl UnwindSafe for EnvVarValue
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