pub struct PolicyContext {
pub allowed_actions: Vec<AllowedAction>,
pub automation_level: Level,
pub required_reviews: Vec<ReviewGate>,
}Expand description
Policy context attached to a workflow so reviewers can see allowed actions and required gates.
Fields§
§allowed_actions: Vec<AllowedAction>Workflow allowed actions value preserved for staff review and audit evidence.
automation_level: LevelWorkflow automation level value preserved for staff review and audit evidence.
required_reviews: Vec<ReviewGate>Workflow required reviews value preserved for staff review and audit evidence.
Trait Implementations§
Source§impl Clone for PolicyContext
impl Clone for PolicyContext
Source§fn clone(&self) -> PolicyContext
fn clone(&self) -> PolicyContext
Returns a duplicate of the value. Read more
1.0.0 · 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 PolicyContext
impl Debug for PolicyContext
Source§impl<'de> Deserialize<'de> for PolicyContext
impl<'de> Deserialize<'de> for PolicyContext
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
Source§impl PartialEq for PolicyContext
impl PartialEq for PolicyContext
Source§impl Serialize for PolicyContext
impl Serialize for PolicyContext
impl Eq for PolicyContext
impl StructuralPartialEq for PolicyContext
Auto Trait Implementations§
impl Freeze for PolicyContext
impl RefUnwindSafe for PolicyContext
impl Send for PolicyContext
impl Sync for PolicyContext
impl Unpin for PolicyContext
impl UnsafeUnpin for PolicyContext
impl UnwindSafe for PolicyContext
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