pub struct RuleLimit {
pub rule: Option<usize>,
pub format: Option<String>,
pub rule_id: Option<String>,
pub counts: Option<GuideCounts>,
pub line: usize,
pub limit: GuideLimit,
}Expand description
RuleLimit is one limit of a block: its own, or one of a unit rule’s or
a line rule’s.
Fields§
§rule: Option<usize>rule is the place of the unit rule or the line rule whose limit this
is, among the unit rules of the schema, counted from 0. It is absent for
the block’s own limit.
format: Option<String>format is the name of the format that the unit rule or the line
rule binds. It is absent for the block’s own limit and for a rule
that binds no format.
rule_id: Option<String>rule_id is the rule-id of the unit rule or the line rule. It is
absent for the block’s own limit and for a rule without one.
counts: Option<GuideCounts>counts is what the unit rule or the line rule counts: the units of
the block, or the content lines of a code block or an HTML block. It
is absent for the block’s own limit.
line: usizeline is the line of the rule in the schema.
limit: GuideLimitThe limit.
Trait Implementations§
impl Eq for RuleLimit
Source§impl JsonSchema for RuleLimit
impl JsonSchema for RuleLimit
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 moreimpl StructuralPartialEq for RuleLimit
Auto Trait Implementations§
impl Forget for RuleLimit
impl Freeze for RuleLimit
impl Move for RuleLimit
impl RefUnwindSafe for RuleLimit
impl Send for RuleLimit
impl Sync for RuleLimit
impl Unpin for RuleLimit
impl UnsafeUnpin for RuleLimit
impl UnwindSafe for RuleLimit
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§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.