pub struct LinkGuide {
pub rel: String,
pub optional: bool,
pub limit: Option<GuideLimit>,
pub text: Option<String>,
pub example: String,
}Expand description
LinkGuide holds the guidance of one links rule.
Fields§
§rel: Stringrel is the relationship of the links that the rule governs.
optional: booloptional is true when the rule’s min is 0.
limit: Option<GuideLimit>limit is the limit on the links of the rule. It is absent when the
rule has no max.
text: Option<String>text holds the words of the guidance line before the link: the
rule’s guidance, then the words that state its limit and the limit’s
when-at-limit. It is absent when the rule has neither.
example: Stringexample is the links key with one entry of the rule, which names
its target by the placeholder target-id.
Trait Implementations§
impl Eq for LinkGuide
Source§impl JsonSchema for LinkGuide
impl JsonSchema for LinkGuide
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 LinkGuide
Auto Trait Implementations§
impl Forget for LinkGuide
impl Freeze for LinkGuide
impl Move for LinkGuide
impl RefUnwindSafe for LinkGuide
impl Send for LinkGuide
impl Sync for LinkGuide
impl Unpin for LinkGuide
impl UnsafeUnpin for LinkGuide
impl UnwindSafe for LinkGuide
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.