#[non_exhaustive]pub struct FindingRule {
pub id: Option<String>,
pub name: Option<String>,
/* private fields */
}
Expand description
The rule that triggered this finding.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: Option<String>
The ID of the rule that triggered this finding.
name: Option<String>
The name of the rule that triggered this finding.
Implementations§
Trait Implementations§
Source§impl Clone for FindingRule
impl Clone for FindingRule
Source§fn clone(&self) -> FindingRule
fn clone(&self) -> FindingRule
Returns a copy 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 FindingRule
impl Debug for FindingRule
Source§impl Default for FindingRule
impl Default for FindingRule
Source§impl<'de> Deserialize<'de> for FindingRule
impl<'de> Deserialize<'de> for FindingRule
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 FindingRule
impl PartialEq for FindingRule
Source§impl Serialize for FindingRule
impl Serialize for FindingRule
impl StructuralPartialEq for FindingRule
Auto Trait Implementations§
impl Freeze for FindingRule
impl RefUnwindSafe for FindingRule
impl Send for FindingRule
impl Sync for FindingRule
impl Unpin for FindingRule
impl UnwindSafe for FindingRule
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