pub struct WorkflowPlanElevation {Show 13 fields
pub elevated: bool,
pub goal: String,
pub child_count: usize,
pub child_summary: String,
pub writes: bool,
pub shell: bool,
pub network: bool,
pub secrets: bool,
pub worktree: bool,
pub high_budget: bool,
pub broader_authority: bool,
pub budget_label: String,
pub reasons: Vec<String>,
}Expand description
Summary of why a Workflow plan needs (or does not need) elevated approval.
Fields§
§elevated: bool§goal: String§child_count: usize§child_summary: String§writes: bool§shell: bool§network: bool§secrets: bool§worktree: bool§high_budget: bool§budget_label: StringHuman-readable budget line for the approval card.
reasons: Vec<String>Distinct elevation reasons (for audit / impact lines).
Implementations§
Source§impl WorkflowPlanElevation
impl WorkflowPlanElevation
Sourcepub fn card_fields(&self) -> Vec<(&'static str, String)>
pub fn card_fields(&self) -> Vec<(&'static str, String)>
Card field labels/values used by the TUI approval modal (#4126).
Sourcepub fn is_read_only_envelope(&self) -> bool
pub fn is_read_only_envelope(&self) -> bool
True when the plan is fully inside the read-only envelope.
Trait Implementations§
Source§impl Clone for WorkflowPlanElevation
impl Clone for WorkflowPlanElevation
Source§fn clone(&self) -> WorkflowPlanElevation
fn clone(&self) -> WorkflowPlanElevation
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 WorkflowPlanElevation
impl Debug for WorkflowPlanElevation
Source§impl<'de> Deserialize<'de> for WorkflowPlanElevation
impl<'de> Deserialize<'de> for WorkflowPlanElevation
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 WorkflowPlanElevation
Source§impl PartialEq for WorkflowPlanElevation
impl PartialEq for WorkflowPlanElevation
Source§impl Serialize for WorkflowPlanElevation
impl Serialize for WorkflowPlanElevation
impl StructuralPartialEq for WorkflowPlanElevation
Auto Trait Implementations§
impl Freeze for WorkflowPlanElevation
impl RefUnwindSafe for WorkflowPlanElevation
impl Send for WorkflowPlanElevation
impl Sync for WorkflowPlanElevation
impl Unpin for WorkflowPlanElevation
impl UnsafeUnpin for WorkflowPlanElevation
impl UnwindSafe for WorkflowPlanElevation
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