pub enum PolicyOutcome {
CryptoFailed,
NoPolicy,
Evaluated(Decision),
}Expand description
The org-policy outcome layered on a cryptographically-valid commit verdict.
Policy is evaluated after the cryptographic verdict (fail-closed ordering: an unverified commit never reaches policy). It is a sum, never a bool.
Variants§
CryptoFailed
The cryptographic verdict was not Valid; policy was not evaluated (the commit
is already rejected by the verdict).
NoPolicy
The commit’s root anchored no org policy — legacy allow, recorded (not silently skipped). Pre-policy behavior is preserved for roots without a policy.
Evaluated(Decision)
The org policy was evaluated; carries the typed auths_id::policy::Decision.
Trait Implementations§
Source§impl Clone for PolicyOutcome
impl Clone for PolicyOutcome
Source§fn clone(&self) -> PolicyOutcome
fn clone(&self) -> PolicyOutcome
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 PolicyOutcome
impl RefUnwindSafe for PolicyOutcome
impl Send for PolicyOutcome
impl Sync for PolicyOutcome
impl Unpin for PolicyOutcome
impl UnsafeUnpin for PolicyOutcome
impl UnwindSafe for PolicyOutcome
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