pub struct VariableValue {
pub value: String,
pub description: Option<String>,
pub variable_type: VariableType,
pub settings: Settings,
}
Expand description
The value of a variable.
Fields§
§value: String
The actual value
If masked
is true
, this value must
- be at least 8 characters long
- not contain whitespace characters
- not contain backslashes (
\
)
TODO: validate this ^
description: Option<String>
The description of the variable’s value or usage.
variable_type: VariableType
§settings: Settings
Trait Implementations§
Source§impl Debug for VariableValue
impl Debug for VariableValue
Source§impl<'de> Deserialize<'de> for VariableValue
impl<'de> Deserialize<'de> for VariableValue
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 From<Variable> for VariableValue
impl From<Variable> for VariableValue
Source§impl PartialEq for VariableValue
impl PartialEq for VariableValue
Source§impl Serialize for VariableValue
impl Serialize for VariableValue
impl Eq for VariableValue
impl StructuralPartialEq for VariableValue
Auto Trait Implementations§
impl Freeze for VariableValue
impl RefUnwindSafe for VariableValue
impl Send for VariableValue
impl Sync for VariableValue
impl Unpin for VariableValue
impl UnwindSafe for VariableValue
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