#[non_exhaustive]pub struct ApprovalStageResolution {
pub kind: String,
pub diagnostic: Option<String>,
pub argv_prefix: Option<Vec<String>>,
}Expand description
Whether a shell stage still needs a decision, or how it was satisfied. Satisfied stages are included so a client can show progress.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: StringOne of unresolved, knownSafe, policyAllow, allowOnce or
policyAmendment. The set is open, so newer hosts may add values.
diagnostic: Option<String>Free-form text naming the rule or mode that allowed the stage, for
display or troubleshooting. Present only when kind is policyAllow.
argv_prefix: Option<Vec<String>>The command prefix saved as an always-allow rule when this stage was
approved. Present only when kind is policyAmendment.
Implementations§
Source§impl ApprovalStageResolution
The ApprovalStageResolution.kind wire words (same single-source rule).
impl ApprovalStageResolution
The ApprovalStageResolution.kind wire words (same single-source rule).
Sourcepub const KIND_UNRESOLVED: &'static str = "unresolved"
pub const KIND_UNRESOLVED: &'static str = "unresolved"
unresolved: the stage still needs a decision.
Sourcepub const KIND_KNOWN_SAFE: &'static str = "knownSafe"
pub const KIND_KNOWN_SAFE: &'static str = "knownSafe"
knownSafe: the stage’s command is recognized as safe to run without
asking.
Sourcepub const KIND_POLICY_ALLOW: &'static str = "policyAllow"
pub const KIND_POLICY_ALLOW: &'static str = "policyAllow"
policyAllow: an existing rule or the session’s approval mode already
allows the stage. See diagnostic.
Sourcepub const KIND_ALLOW_ONCE: &'static str = "allowOnce"
pub const KIND_ALLOW_ONCE: &'static str = "allowOnce"
allowOnce: a decision allowed this stage for this request only,
without saving a rule.
Sourcepub const KIND_POLICY_AMENDMENT: &'static str = "policyAmendment"
pub const KIND_POLICY_AMENDMENT: &'static str = "policyAmendment"
policyAmendment: a decision allowed this stage and saved a
command-prefix rule. See argvPrefix.