pub enum OperationSettingValue {
Variant0(String),
Variant1 {
input: String,
},
Variant2 {
resources: Vec<String>,
},
Variant3 {
env: String,
},
}Expand description
Value of one plugin setting.
JSON schema
{
"description": "Value of one plugin setting.",
"oneOf": [
{
"description": "A literal value.",
"type": "string"
},
{
"description": "The value of a stack input.",
"type": "object",
"required": [
"input"
],
"properties": {
"input": {
"description": "Stack input id.",
"type": "string"
}
}
},
{
"description": "Stack resources the plugin may act on, such as buckets or queues.",
"type": "object",
"required": [
"resources"
],
"properties": {
"resources": {
"description": "Resource ids in the same stack.",
"type": "array",
"items": {
"type": "string"
}
}
}
},
{
"description": "An environment variable of the Operator process. Only for an Operator\ninstalled on its own, so secrets stay in its environment.",
"type": "object",
"required": [
"env"
],
"properties": {
"env": {
"description": "Environment variable name.",
"type": "string"
}
}
}
]
}Variants§
Trait Implementations§
Source§impl Clone for OperationSettingValue
impl Clone for OperationSettingValue
Source§impl Debug for OperationSettingValue
impl Debug for OperationSettingValue
Source§impl<'de> Deserialize<'de> for OperationSettingValue
impl<'de> Deserialize<'de> for OperationSettingValue
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<&OperationSettingValue> for OperationSettingValue
impl From<&OperationSettingValue> for OperationSettingValue
Source§fn from(value: &OperationSettingValue) -> Self
fn from(value: &OperationSettingValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OperationSettingValue
impl RefUnwindSafe for OperationSettingValue
impl Send for OperationSettingValue
impl Sync for OperationSettingValue
impl Unpin for OperationSettingValue
impl UnsafeUnpin for OperationSettingValue
impl UnwindSafe for OperationSettingValue
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