pub struct PreambleGuide {
pub guidance: Option<String>,
pub text: Option<String>,
pub example: Option<String>,
pub blocks: Vec<BlockGuide>,
pub line: usize,
}Expand description
PreambleGuide holds the guidance of the preamble.
Fields§
§guidance: Option<String>guidance is the preamble’s own guidance.
text: Option<String>text holds the words of the guidance line before the preamble.
example: Option<String>example is the text that the scaffold of the schema writes for the
preamble. It is absent where the scaffold writes none.
blocks: Vec<BlockGuide>blocks holds each block that the states admit, in order.
line: usizeline is the line of the preamble in the schema.
Trait Implementations§
Source§impl Clone for PreambleGuide
impl Clone for PreambleGuide
Source§impl Debug for PreambleGuide
impl Debug for PreambleGuide
impl Eq for PreambleGuide
Source§impl JsonSchema for PreambleGuide
impl JsonSchema for PreambleGuide
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 PreambleGuide
impl PartialEq for PreambleGuide
Source§impl Serialize for PreambleGuide
impl Serialize for PreambleGuide
impl StructuralPartialEq for PreambleGuide
Auto Trait Implementations§
impl Forget for PreambleGuide
impl Freeze for PreambleGuide
impl Move for PreambleGuide
impl RefUnwindSafe for PreambleGuide
impl Send for PreambleGuide
impl Sync for PreambleGuide
impl Unpin for PreambleGuide
impl UnsafeUnpin for PreambleGuide
impl UnwindSafe for PreambleGuide
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.