Struct cargo_update::ops::EnvironmentOverride
source · pub struct EnvironmentOverride(pub Option<String>);
Expand description
Wrapper that serialises None
as a boolean.
serde’s default BTreeMap<String, Option<String>>
implementation simply loses None
values.
Tuple Fields§
§0: Option<String>
Trait Implementations§
source§impl Clone for EnvironmentOverride
impl Clone for EnvironmentOverride
source§fn clone(&self) -> EnvironmentOverride
fn clone(&self) -> EnvironmentOverride
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 EnvironmentOverride
impl Debug for EnvironmentOverride
source§impl<'de> Deserialize<'de> for EnvironmentOverride
impl<'de> Deserialize<'de> for EnvironmentOverride
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for EnvironmentOverride
impl Hash for EnvironmentOverride
source§impl PartialEq for EnvironmentOverride
impl PartialEq for EnvironmentOverride
source§fn eq(&self, other: &EnvironmentOverride) -> bool
fn eq(&self, other: &EnvironmentOverride) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EnvironmentOverride
impl Serialize for EnvironmentOverride
impl Eq for EnvironmentOverride
impl StructuralPartialEq for EnvironmentOverride
Auto Trait Implementations§
impl Freeze for EnvironmentOverride
impl RefUnwindSafe for EnvironmentOverride
impl Send for EnvironmentOverride
impl Sync for EnvironmentOverride
impl Unpin for EnvironmentOverride
impl UnwindSafe for EnvironmentOverride
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<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.