pub struct GuideLimit {
pub kind: GuideLimitKind,
pub count: usize,
pub when_at_limit: String,
}Expand description
GuideLimit is a limit on a part: its kind, the number of units, lines, or
elements that it states, and what the writer does at the limit.
Fields§
§kind: GuideLimitKindkind is soft for the usual length, which nothing checks, or
hard for the most that a part can hold.
count: usizecount is the number that the limit states.
when_at_limit: Stringwhen_at_limit is the schema’s text that says what the writer does at
the limit.
Trait Implementations§
Source§impl Clone for GuideLimit
impl Clone for GuideLimit
Source§impl Debug for GuideLimit
impl Debug for GuideLimit
impl Eq for GuideLimit
Source§impl JsonSchema for GuideLimit
impl JsonSchema for GuideLimit
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 PartialEq for GuideLimit
impl PartialEq for GuideLimit
Source§impl Serialize for GuideLimit
impl Serialize for GuideLimit
impl StructuralPartialEq for GuideLimit
Auto Trait Implementations§
impl Forget for GuideLimit
impl Freeze for GuideLimit
impl Move for GuideLimit
impl RefUnwindSafe for GuideLimit
impl Send for GuideLimit
impl Sync for GuideLimit
impl Unpin for GuideLimit
impl UnsafeUnpin for GuideLimit
impl UnwindSafe for GuideLimit
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.