pub struct VariableConfig {
pub var_type: VariableType,
pub value: String,
pub path: String,
}Fields§
§var_type: VariableType§value: String§path: StringTrait Implementations§
Source§impl Clone for VariableConfig
impl Clone for VariableConfig
Source§fn clone(&self) -> VariableConfig
fn clone(&self) -> VariableConfig
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 VariableConfig
impl Debug for VariableConfig
Source§impl Default for VariableConfig
impl Default for VariableConfig
Source§fn default() -> VariableConfig
fn default() -> VariableConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VariableConfig
Decodes both the scalar shorthand (NAME: literal-value) and the
explicit mapping form (NAME: {type: ..., value: ..., path: ...}) of a
variable, mirroring (*VariableConfig).UnmarshalYAML. Implemented via
deserialize_any rather than the YAML-only yaml.Node API the Go
original uses, so this works uniformly whether the underlying format is
serde_yaml or serde_json (both hand scalars and maps through the same
Visitor callbacks).
impl<'de> Deserialize<'de> for VariableConfig
Decodes both the scalar shorthand (NAME: literal-value) and the
explicit mapping form (NAME: {type: ..., value: ..., path: ...}) of a
variable, mirroring (*VariableConfig).UnmarshalYAML. Implemented via
deserialize_any rather than the YAML-only yaml.Node API the Go
original uses, so this works uniformly whether the underlying format is
serde_yaml or serde_json (both hand scalars and maps through the same
Visitor callbacks).
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 VariableConfig
Source§impl PartialEq for VariableConfig
impl PartialEq for VariableConfig
Source§fn eq(&self, other: &VariableConfig) -> bool
fn eq(&self, other: &VariableConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VariableConfig
impl Serialize for VariableConfig
impl StructuralPartialEq for VariableConfig
Auto Trait Implementations§
impl Freeze for VariableConfig
impl RefUnwindSafe for VariableConfig
impl Send for VariableConfig
impl Sync for VariableConfig
impl Unpin for VariableConfig
impl UnsafeUnpin for VariableConfig
impl UnwindSafe for VariableConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.