pub struct GovernanceDecision {
pub decision_id: String,
pub effect_id: String,
pub verdict: GovernanceDecisionVerdict,
pub reason_code: Option<Option<String>>,
pub receipt: Option<Box<Receipt>>,
pub active_packs: Option<Vec<String>>,
}Expand description
GovernanceDecision : PDP decision for an effect
Fields§
§decision_id: String§effect_id: String§verdict: GovernanceDecisionVerdict§reason_code: Option<Option<String>>Null for ALLOW. Registered code from reason-codes-v1.json for DENY/ESCALATE.
receipt: Option<Box<Receipt>>§active_packs: Option<Vec<String>>Names of policy bundles active during evaluation
Implementations§
Source§impl GovernanceDecision
impl GovernanceDecision
Sourcepub fn new(
decision_id: String,
effect_id: String,
verdict: GovernanceDecisionVerdict,
) -> GovernanceDecision
pub fn new( decision_id: String, effect_id: String, verdict: GovernanceDecisionVerdict, ) -> GovernanceDecision
PDP decision for an effect
Trait Implementations§
Source§impl Clone for GovernanceDecision
impl Clone for GovernanceDecision
Source§fn clone(&self) -> GovernanceDecision
fn clone(&self) -> GovernanceDecision
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 GovernanceDecision
impl Debug for GovernanceDecision
Source§impl Default for GovernanceDecision
impl Default for GovernanceDecision
Source§fn default() -> GovernanceDecision
fn default() -> GovernanceDecision
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GovernanceDecision
impl<'de> Deserialize<'de> for GovernanceDecision
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 GovernanceDecision
impl PartialEq for GovernanceDecision
Source§fn eq(&self, other: &GovernanceDecision) -> bool
fn eq(&self, other: &GovernanceDecision) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GovernanceDecision
impl Serialize for GovernanceDecision
impl StructuralPartialEq for GovernanceDecision
Auto Trait Implementations§
impl Freeze for GovernanceDecision
impl RefUnwindSafe for GovernanceDecision
impl Send for GovernanceDecision
impl Sync for GovernanceDecision
impl Unpin for GovernanceDecision
impl UnsafeUnpin for GovernanceDecision
impl UnwindSafe for GovernanceDecision
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