#[non_exhaustive]pub enum ApprovalDecision {
Approved,
ApprovedForSession,
ApprovedPolicyAmendment,
Denied,
DeniedPolicyAmendment,
TimedOut,
Abort,
Unknown(String),
}Expand description
The kind of decision a choice applies or an approval received. The set is open, so newer hosts may send values this version does not list.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Approved
approved: the action may run this once; nothing is remembered.
ApprovedForSession
approvedForSession: the action is approved, and matching requests are
approved automatically for the rest of the session.
ApprovedPolicyAmendment
approvedPolicyAmendment: the action is approved and an allow rule is
added to policy; the choice’s scope, or the resolution’s amendment,
says how long the rule lasts.
Denied
denied: the action is denied and does not run; no rule is saved.
DeniedPolicyAmendment
deniedPolicyAmendment: the action is denied and a deny rule is added
to policy.
TimedOut
timedOut: no decision arrived in time, and the action does not run.
Abort
abort: the action was rejected and does not run. It is the decision
behind the reject choice, a turn interrupt, and cleanup after a host
restart.
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the message. Excluded from the generated schema while the enum stays declared open; never construct it with a known word.