pub struct RuleInstance {
pub id: String,
pub definition_id: String,
pub name: LocalizedText,
pub description: Option<LocalizedText>,
pub enabled: bool,
pub severity: Severity,
pub message: Option<LocalizedText>,
pub parameters: BTreeMap<String, ParameterValue>,
pub applicability: Selector,
pub tags: Vec<String>,
}Fields§
§id: String§definition_id: String§name: LocalizedText§description: Option<LocalizedText>§enabled: bool§severity: Severity§message: Option<LocalizedText>§parameters: BTreeMap<String, ParameterValue>§applicability: SelectorTrait Implementations§
Source§impl Clone for RuleInstance
impl Clone for RuleInstance
Source§fn clone(&self) -> RuleInstance
fn clone(&self) -> RuleInstance
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 RuleInstance
impl Debug for RuleInstance
Source§impl<'de> Deserialize<'de> for RuleInstance
impl<'de> Deserialize<'de> for RuleInstance
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 RuleInstance
impl PartialEq for RuleInstance
Source§impl Serialize for RuleInstance
impl Serialize for RuleInstance
impl StructuralPartialEq for RuleInstance
Auto Trait Implementations§
impl Freeze for RuleInstance
impl RefUnwindSafe for RuleInstance
impl Send for RuleInstance
impl Sync for RuleInstance
impl Unpin for RuleInstance
impl UnwindSafe for RuleInstance
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