pub struct ParamSpec {
pub param_type: String,
pub has_values_allowlist: bool,
}Expand description
Pipeline-level parameter declaration captured from a top-level
parameters: block. Used by rules that need to reason about whether
caller-supplied parameter values are constrained (values: allowlist)
or free-form (no allowlist on a string parameter — shell-injection risk).
Fields§
§param_type: StringDeclared parameter type (string, number, boolean, object, etc.).
Empty string when the YAML omitted type: (ADO defaults to string).
has_values_allowlist: boolTrue when the parameter declares a values: allowlist that constrains
the set of acceptable inputs. When true, free-form shell injection is
not possible because the runtime rejects any value outside the list.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ParamSpec
impl<'de> Deserialize<'de> for ParamSpec
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
Auto Trait Implementations§
impl Freeze for ParamSpec
impl RefUnwindSafe for ParamSpec
impl Send for ParamSpec
impl Sync for ParamSpec
impl Unpin for ParamSpec
impl UnsafeUnpin for ParamSpec
impl UnwindSafe for ParamSpec
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