pub struct SegmentReport {
pub text: String,
pub verdict: Verdict,
pub culprit: Option<String>,
}Fields§
§text: StringThe segment rendered back to source (whitespace/operators normalized).
verdict: Verdict§culprit: Option<String>For a denied pipeline segment (a | b | c), the name of the first
stage that is not auto-approved — disambiguating which stage to drop.
None for a single-command segment (its text already names it) or when
the culprit isn’t a plain command (e.g. a subshell or redirect target).
Trait Implementations§
Source§impl Clone for SegmentReport
impl Clone for SegmentReport
Source§fn clone(&self) -> SegmentReport
fn clone(&self) -> SegmentReport
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 SegmentReport
impl Debug for SegmentReport
impl Eq for SegmentReport
Source§impl PartialEq for SegmentReport
impl PartialEq for SegmentReport
impl StructuralPartialEq for SegmentReport
Auto Trait Implementations§
impl Freeze for SegmentReport
impl RefUnwindSafe for SegmentReport
impl Send for SegmentReport
impl Sync for SegmentReport
impl Unpin for SegmentReport
impl UnsafeUnpin for SegmentReport
impl UnwindSafe for SegmentReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.