pub struct PluginOutcome {
pub decision: Decision,
pub taints: Vec<TaintEvent>,
pub modified_value: Option<Value>,
}Expand description
What a plugin returned.
Fields§
§decision: Decision§taints: Vec<TaintEvent>Plugins may apply taint labels as a side effect. Same shape as
config-emitted taints (Step::Taint / Stage::Taint) so the
downstream evaluator can append both into a single
Vec<TaintEvent> without converting. Each event may carry
multiple scopes — CmfPluginInvoker uses single-scope
(Session) for v0 but future invokers and plugins that emit
directly are free to span scopes.
modified_value: Option<Value>Pipe-context return: when a plugin runs as a stage inside an
args/result chain, it may rewrite the field value (e.g., a PII
scrubber producing a redacted string). None means “leave value
unchanged”; always None for policy / post_policy invocations.
Implementations§
Source§impl PluginOutcome
impl PluginOutcome
Trait Implementations§
Source§impl Clone for PluginOutcome
impl Clone for PluginOutcome
Source§fn clone(&self) -> PluginOutcome
fn clone(&self) -> PluginOutcome
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 moreAuto Trait Implementations§
impl Freeze for PluginOutcome
impl RefUnwindSafe for PluginOutcome
impl Send for PluginOutcome
impl Sync for PluginOutcome
impl Unpin for PluginOutcome
impl UnsafeUnpin for PluginOutcome
impl UnwindSafe for PluginOutcome
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