pub struct RuleLabel {
pub rule: Option<usize>,
pub rule_id: Option<String>,
pub line: usize,
pub label: GuideLabel,
}Expand description
RuleLabel says whether the units of a block, or the units of one of its
unit rules, carry a label.
Fields§
§rule: Option<usize>rule is the place of the unit rule whose label this is, among the
unit rules of the schema, counted from 0. It is absent for the block’s
own label.
rule_id: Option<String>rule_id is the rule-id of the unit rule. It is absent for the
block’s own label and for a rule without one.
line: usizeline is the line of the rule in the schema.
label: GuideLabellabel is required where each unit carries a label, and optional
where a unit carries one if its writer gives one.
Trait Implementations§
impl Eq for RuleLabel
Source§impl JsonSchema for RuleLabel
impl JsonSchema for RuleLabel
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 RuleLabel
Auto Trait Implementations§
impl Forget for RuleLabel
impl Freeze for RuleLabel
impl Move for RuleLabel
impl RefUnwindSafe for RuleLabel
impl Send for RuleLabel
impl Sync for RuleLabel
impl Unpin for RuleLabel
impl UnsafeUnpin for RuleLabel
impl UnwindSafe for RuleLabel
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.