pub struct ParameterSetting {
pub allowed: Vec<String>,
pub default: String,
}Expand description
Setting for a specific parameter
JSON schema
{
"description": "Setting for a specific parameter",
"type": "object",
"required": [
"allowed",
"default"
],
"properties": {
"allowed": {
"type": "array",
"items": {
"type": "string"
}
},
"default": {
"description": "Default value for the parameter",
"type": "string"
}
},
"additionalProperties": false,
"x-schema-name": "ParameterSetting"
}Fields§
§allowed: Vec<String>§default: StringDefault value for the parameter
Trait Implementations§
Source§impl Clone for ParameterSetting
impl Clone for ParameterSetting
Source§fn clone(&self) -> ParameterSetting
fn clone(&self) -> ParameterSetting
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 moreSource§impl Debug for ParameterSetting
impl Debug for ParameterSetting
Source§impl<'de> Deserialize<'de> for ParameterSetting
impl<'de> Deserialize<'de> for ParameterSetting
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<&ParameterSetting> for ParameterSetting
impl From<&ParameterSetting> for ParameterSetting
Source§fn from(value: &ParameterSetting) -> Self
fn from(value: &ParameterSetting) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParameterSetting
impl RefUnwindSafe for ParameterSetting
impl Send for ParameterSetting
impl Sync for ParameterSetting
impl Unpin for ParameterSetting
impl UnwindSafe for ParameterSetting
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