pub struct ValuesProgramWrapper {
pub scope_path: String,
pub key: String,
pub spread: bool,
}Expand description
A chart-authored values-program wrapper convention: within scope_path
(empty for the whole values tree), any node may be a singleton
{key: PROGRAM} map that the chart’s engine replaces with the
tpl-rendered, YAML-reparsed program result before consumers read it.
Fields§
§scope_path: StringValues subtree the engine rewrites; empty means the whole tree.
key: StringThe wrapper’s sentinel member key ($tplYaml).
spread: boolWhether the engine SPREADS the program result into the parent
collection instead of replacing the node ($tplYamlSpread): the
result’s kind must match the parent’s kind (a null result is a
no-op removal), and the values root itself rejects the wrapper.
Trait Implementations§
Source§impl Clone for ValuesProgramWrapper
impl Clone for ValuesProgramWrapper
Source§fn clone(&self) -> ValuesProgramWrapper
fn clone(&self) -> ValuesProgramWrapper
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 ValuesProgramWrapper
impl Debug for ValuesProgramWrapper
impl Eq for ValuesProgramWrapper
Source§impl Hash for ValuesProgramWrapper
impl Hash for ValuesProgramWrapper
Source§impl Ord for ValuesProgramWrapper
impl Ord for ValuesProgramWrapper
Source§fn cmp(&self, other: &ValuesProgramWrapper) -> Ordering
fn cmp(&self, other: &ValuesProgramWrapper) -> Ordering
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 PartialEq for ValuesProgramWrapper
impl PartialEq for ValuesProgramWrapper
Source§impl PartialOrd for ValuesProgramWrapper
impl PartialOrd for ValuesProgramWrapper
impl StructuralPartialEq for ValuesProgramWrapper
Auto Trait Implementations§
impl Freeze for ValuesProgramWrapper
impl RefUnwindSafe for ValuesProgramWrapper
impl Send for ValuesProgramWrapper
impl Sync for ValuesProgramWrapper
impl Unpin for ValuesProgramWrapper
impl UnsafeUnpin for ValuesProgramWrapper
impl UnwindSafe for ValuesProgramWrapper
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