pub struct GuardFinding {
pub rule_name: String,
pub path: Option<String>,
pub missing_query: Option<String>,
pub custom_message: Option<String>,
pub check: String,
}Expand description
One failed Guard check, located by the template path the evaluator reached.
Fields§
§rule_name: StringThe top-level rule the failed check belongs to.
path: Option<String>Slash-separated path from the template root to the value the check was
evaluated against (Resources/Bucket/Properties/BucketName), or to the
deepest value that exists when the checked property is missing. None
when the failure has no template location, such as a failed dependency
on another rule.
missing_query: Option<String>The remainder of the query the evaluator could not resolve from path,
present exactly when the check failed because a property is missing.
custom_message: Option<String>The author’s <<message>> for the failed check, when one was written.
check: StringThe failed check as the evaluator describes it, whitespace-normalized
(Properties.BucketName EQUALS "foo").
Trait Implementations§
Source§impl Clone for GuardFinding
impl Clone for GuardFinding
Source§impl Debug for GuardFinding
impl Debug for GuardFinding
impl Eq for GuardFinding
Source§impl PartialEq for GuardFinding
impl PartialEq for GuardFinding
impl StructuralPartialEq for GuardFinding
Auto Trait Implementations§
impl Freeze for GuardFinding
impl RefUnwindSafe for GuardFinding
impl Send for GuardFinding
impl Sync for GuardFinding
impl Unpin for GuardFinding
impl UnsafeUnpin for GuardFinding
impl UnwindSafe for GuardFinding
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.