pub struct EnvironmentVariable {
pub name: String,
pub target_resources: Option<Vec<String>>,
pub type_: EnvironmentVariableType,
pub value: String,
}Expand description
Environment variable for deployment
JSON schema
{
"description": "Environment variable for deployment",
"type": "object",
"required": [
"name",
"type",
"value"
],
"properties": {
"name": {
"description": "Variable name",
"type": "string"
},
"targetResources": {
"description": "Target resource patterns (null = all resources, Some = wildcard patterns)",
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
},
"type": {
"$ref": "#/components/schemas/EnvironmentVariableType"
},
"value": {
"description": "Variable value (decrypted - deployment has access to decryption keys)",
"type": "string"
}
}
}Fields§
§name: StringVariable name
target_resources: Option<Vec<String>>Target resource patterns (null = all resources, Some = wildcard patterns)
type_: EnvironmentVariableType§value: StringVariable value (decrypted - deployment has access to decryption keys)
Implementations§
Source§impl EnvironmentVariable
impl EnvironmentVariable
pub fn builder() -> EnvironmentVariable
Trait Implementations§
Source§impl Clone for EnvironmentVariable
impl Clone for EnvironmentVariable
Source§fn clone(&self) -> EnvironmentVariable
fn clone(&self) -> EnvironmentVariable
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 EnvironmentVariable
impl Debug for EnvironmentVariable
Source§impl<'de> Deserialize<'de> for EnvironmentVariable
impl<'de> Deserialize<'de> for EnvironmentVariable
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<&EnvironmentVariable> for EnvironmentVariable
impl From<&EnvironmentVariable> for EnvironmentVariable
Source§fn from(value: &EnvironmentVariable) -> Self
fn from(value: &EnvironmentVariable) -> Self
Converts to this type from the input type.
Source§impl From<EnvironmentVariable> for EnvironmentVariable
impl From<EnvironmentVariable> for EnvironmentVariable
Source§fn from(value: EnvironmentVariable) -> Self
fn from(value: EnvironmentVariable) -> Self
Converts to this type from the input type.
Source§impl Serialize for EnvironmentVariable
impl Serialize for EnvironmentVariable
Source§impl TryFrom<EnvironmentVariable> for EnvironmentVariable
impl TryFrom<EnvironmentVariable> for EnvironmentVariable
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: EnvironmentVariable) -> Result<Self, ConversionError>
fn try_from(value: EnvironmentVariable) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for EnvironmentVariable
impl RefUnwindSafe for EnvironmentVariable
impl Send for EnvironmentVariable
impl Sync for EnvironmentVariable
impl Unpin for EnvironmentVariable
impl UnsafeUnpin for EnvironmentVariable
impl UnwindSafe for EnvironmentVariable
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