pub struct KeyValuePair {
pub name: Option<String>,
pub value: Option<String>,
}
Expand description
A key-value pair object.
Fields§
§name: Option<String>
The name of the key-value pair. For environment variables, this is the name of the environment variable.
value: Option<String>
The value of the key-value pair. For environment variables, this is the value of the environment variable.
Trait Implementations§
Source§impl Clone for KeyValuePair
impl Clone for KeyValuePair
Source§fn clone(&self) -> KeyValuePair
fn clone(&self) -> KeyValuePair
Returns a copy 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 Debug for KeyValuePair
impl Debug for KeyValuePair
Source§impl Default for KeyValuePair
impl Default for KeyValuePair
Source§fn default() -> KeyValuePair
fn default() -> KeyValuePair
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KeyValuePair
impl<'de> Deserialize<'de> for KeyValuePair
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
Source§impl PartialEq for KeyValuePair
impl PartialEq for KeyValuePair
Source§impl Serialize for KeyValuePair
impl Serialize for KeyValuePair
impl StructuralPartialEq for KeyValuePair
Auto Trait Implementations§
impl Freeze for KeyValuePair
impl RefUnwindSafe for KeyValuePair
impl Send for KeyValuePair
impl Sync for KeyValuePair
impl Unpin for KeyValuePair
impl UnwindSafe for KeyValuePair
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