pub struct RefPath(/* private fields */);Expand description
Closed-scope reference path of the expression grammar (spine §7, 02 §8.1):
RefPath ::= 'params.' Ident ('.' Ident)*
| 'env.' Ident
| 'vars.' Ident
| 'iter.' Ident
| 'steps.' StepIdRef '.' 'output' ('.' Ident)*
| 'steps.' StepIdRef '.' 'verdict'Dotted identifier segments only; array/deep access goes through the
jsonPath pure function. secrets.* is reserved for v0.2 and rejected
today. StepIdRef deliberately has no :: compiler-synthesized step
ids can never be referenced.
Implementations§
Source§impl RefPath
impl RefPath
Sourcepub fn referenced_step(&self) -> Option<&str>
pub fn referenced_step(&self) -> Option<&str>
Returns the referenced upstream step id when this path is rooted at
steps. (the syntactic data-dependency answer of 02 §8.1), or None
for the other scope roots.
Sourcepub fn scope_root(&self) -> &str
pub fn scope_root(&self) -> &str
Returns the scope root of the path (params, env, vars, iter
or steps).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RefPath
impl<'de> Deserialize<'de> for RefPath
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
impl Eq for RefPath
Source§impl JsonSchema for RefPath
impl JsonSchema for RefPath
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(_generator: &mut SchemaGenerator) -> Schema
fn json_schema(_generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§impl Ord for RefPath
impl Ord for RefPath
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for RefPath
impl PartialOrd for RefPath
impl StructuralPartialEq for RefPath
Auto Trait Implementations§
impl Freeze for RefPath
impl RefUnwindSafe for RefPath
impl Send for RefPath
impl Sync for RefPath
impl Unpin for RefPath
impl UnsafeUnpin for RefPath
impl UnwindSafe for RefPath
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