pub struct ApprovalAssertionObject {Show 15 fields
pub count: Option<usize>,
pub count_gte: Option<usize>,
pub count_lte: Option<usize>,
pub trigger: Option<ApprovalTriggerAssertion>,
pub raw_decision: Option<ApprovalDecision>,
pub effective_decision: Option<ApprovalDecision>,
pub message: Option<String>,
pub message_contains: Option<StringList>,
pub rejection_reason: Option<String>,
pub rejection_reason_contains: Option<String>,
pub error: Option<String>,
pub error_contains: Option<String>,
pub original_args: Option<PathAssertion>,
pub modified_args: Option<PathAssertion>,
pub effective_args: Option<PathAssertion>,
}Expand description
Filters and counts for matching approval evidence.
Fields§
§count: Option<usize>Exact number of matching approval records required.
count_gte: Option<usize>Minimum number of matching approval records required.
count_lte: Option<usize>Maximum number of matching approval records required.
trigger: Option<ApprovalTriggerAssertion>Trigger fields that must match one approval record.
raw_decision: Option<ApprovalDecision>Decision returned directly by the approval handler.
effective_decision: Option<ApprovalDecision>Decision after runtime resolution.
message: Option<String>Exact localized approval message.
message_contains: Option<StringList>Required substrings in the localized approval message.
rejection_reason: Option<String>Exact effective rejection reason.
rejection_reason_contains: Option<String>Required substring in an effective rejection reason.
error: Option<String>Exact effective resolution error.
error_contains: Option<String>Required substring in an effective resolution error.
original_args: Option<PathAssertion>Path assertion over original tool arguments.
modified_args: Option<PathAssertion>Path assertion over modified tool arguments.
effective_args: Option<PathAssertion>Path assertion over effective tool arguments.
Trait Implementations§
Source§impl Clone for ApprovalAssertionObject
impl Clone for ApprovalAssertionObject
Source§fn clone(&self) -> ApprovalAssertionObject
fn clone(&self) -> ApprovalAssertionObject
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 ApprovalAssertionObject
impl Debug for ApprovalAssertionObject
Source§impl Default for ApprovalAssertionObject
impl Default for ApprovalAssertionObject
Source§fn default() -> ApprovalAssertionObject
fn default() -> ApprovalAssertionObject
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApprovalAssertionObject
impl<'de> Deserialize<'de> for ApprovalAssertionObject
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
Auto Trait Implementations§
impl Freeze for ApprovalAssertionObject
impl RefUnwindSafe for ApprovalAssertionObject
impl Send for ApprovalAssertionObject
impl Sync for ApprovalAssertionObject
impl Unpin for ApprovalAssertionObject
impl UnsafeUnpin for ApprovalAssertionObject
impl UnwindSafe for ApprovalAssertionObject
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more