pub struct MetaRule {
pub name: Option<String>,
pub description: Option<String>,
pub docs: Option<String>,
}Expand description
Single-rule definition inside Meta::rules.
Fields§
§name: Option<String>Human-readable rule name.
description: Option<String>What this rule detects.
docs: Option<String>URL to the rule documentation.
Trait Implementations§
Source§impl JsonSchema for MetaRule
impl JsonSchema for MetaRule
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for MetaRule
impl Serialize for MetaRule
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for MetaRule
impl RefUnwindSafe for MetaRule
impl Send for MetaRule
impl Sync for MetaRule
impl Unpin for MetaRule
impl UnsafeUnpin for MetaRule
impl UnwindSafe for MetaRule
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